Fix: add missing fd put on stream creation error
authorDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 16:38:19 +0000 (11:38 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 21 Jan 2013 16:39:48 +0000 (11:39 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 8f7db8f2ccbda06e5584a93f332576b70a62b9a9..04243b3251aca2c06e1edaf004e145af8f4fd394 100644 (file)
@@ -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;
        }
This page took 0.037106 seconds and 4 git commands to generate.