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.2.0-rc1~104 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2ba04c3db7dacf5c2021ec162ff0b8c6d8e7915c;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 8f7db8f2c..04243b325 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; }