From: David Goulet Date: Mon, 21 Jan 2013 16:38:19 +0000 (-0500) Subject: Fix: add missing fd put on stream creation error X-Git-Tag: v2.1.2~26 X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=44f2c0c05232524dffaead52dc4c8af88ae12e23 Fix: add missing fd put on stream creation error Signed-off-by: David Goulet --- diff --git a/src/bin/lttng-sessiond/ust-app.c b/src/bin/lttng-sessiond/ust-app.c index 1e7121e5f..8fb0fed03 100644 --- a/src/bin/lttng-sessiond/ust-app.c +++ b/src/bin/lttng-sessiond/ust-app.c @@ -739,6 +739,7 @@ static int create_ust_metadata_stream(struct ust_app *app, ret = ustctl_create_stream(app->sock, ua_sess->metadata->obj, &ua_sess->metadata->stream_obj); if (ret < 0) { + lttng_fd_put(LTTNG_FD_APPS, 2); ERR("UST create metadata stream failed"); goto error; }