X-Git-Url: http://git.efficios.com/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmanage-apps.c;h=f9ec356da775213eab133c2ad1f27d547f548d3b;hp=6ef0351fe8088f16b2d35cb8f0c66dca2700ea3f;hb=21fa020ee12d44632c5efde063869d542897bdd1;hpb=b0a23296344e57bd2e48e62ec2d7e0d8a38661bb diff --git a/src/bin/lttng-sessiond/manage-apps.c b/src/bin/lttng-sessiond/manage-apps.c index 6ef0351fe..f9ec356da 100644 --- a/src/bin/lttng-sessiond/manage-apps.c +++ b/src/bin/lttng-sessiond/manage-apps.c @@ -226,13 +226,12 @@ bool launch_application_management_thread(int apps_cmd_pipe_read_fd) struct thread_notifiers *notifiers = NULL; struct lttng_thread *thread; - quit_pipe = lttng_pipe_open(FD_CLOEXEC); - if (!quit_pipe) { - goto error; - } - notifiers = zmalloc(sizeof(*notifiers)); if (!notifiers) { + goto error_alloc; + } + quit_pipe = lttng_pipe_open(FD_CLOEXEC); + if (!quit_pipe) { goto error; } notifiers->quit_pipe = quit_pipe; @@ -251,5 +250,6 @@ bool launch_application_management_thread(int apps_cmd_pipe_read_fd) return true; error: cleanup_application_management_thread(notifiers); +error_alloc: return false; }