X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fregister.c;fp=src%2Fbin%2Flttng-sessiond%2Fregister.c;h=6ce25ad0f66a1f9af143b73e3937693d444bf334;hp=d0a1ff14a69dc3173d89fbcf866de09fdb339816;hb=21fa020ee12d44632c5efde063869d542897bdd1;hpb=b0a23296344e57bd2e48e62ec2d7e0d8a38661bb diff --git a/src/bin/lttng-sessiond/register.c b/src/bin/lttng-sessiond/register.c index d0a1ff14a..6ce25ad0f 100644 --- a/src/bin/lttng-sessiond/register.c +++ b/src/bin/lttng-sessiond/register.c @@ -400,13 +400,12 @@ struct lttng_thread *launch_application_registration_thread( 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; @@ -428,5 +427,6 @@ struct lttng_thread *launch_application_registration_thread( return thread; error: cleanup_application_registration_thread(notifiers); +error_alloc: return NULL; }