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.lttng.org./?a=commitdiff_plain;h=44f2c0c05232524dffaead52dc4c8af88ae12e23;p=lttng-tools.git 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; }