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:40:02 +0000 (11:40 -0500)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/ust-app.c

index 1e7121e5f13dcb796350e659ed450666ba17eb51..8fb0fed034aa58e534a8dad1b9db181114a67c30 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.027774 seconds and 4 git commands to generate.