From 2ba04c3db7dacf5c2021ec162ff0b8c6d8e7915c Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 21 Jan 2013 11:38:19 -0500 Subject: [PATCH] Fix: add missing fd put on stream creation error Signed-off-by: David Goulet --- src/bin/lttng-sessiond/ust-app.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1