X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fagent-thread.c;h=f7be1ef71f0bf809fad7ba50ee72faf82ed5de85;hb=ac4c07212ead3c601918c21b21eeaace48a95593;hp=3ee383389d5e35927b9787e221fc3e51a0cf2b03;hpb=9d2bf9edc4aeb620bc7a0b7c240f7713cbbaf134;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/agent-thread.c b/src/bin/lttng-sessiond/agent-thread.c index 3ee383389..f7be1ef71 100644 --- a/src/bin/lttng-sessiond/agent-thread.c +++ b/src/bin/lttng-sessiond/agent-thread.c @@ -504,7 +504,7 @@ bool launch_agent_management_thread(void) notifiers = zmalloc(sizeof(*notifiers)); if (!notifiers) { - goto error; + goto error_alloc; } sem_init(¬ifiers->ready, 0, 0); @@ -525,5 +525,6 @@ bool launch_agent_management_thread(void) return true; error: cleanup_agent_management_thread(notifiers); +error_alloc: return false; }