Fix: dereference on NULL pointer on allocation failure
[lttng-tools.git] / src / bin / lttng-sessiond / agent-thread.c
index 3ee383389d5e35927b9787e221fc3e51a0cf2b03..f7be1ef71f0bf809fad7ba50ee72faf82ed5de85 100644 (file)
@@ -504,7 +504,7 @@ bool launch_agent_management_thread(void)
 
        notifiers = zmalloc(sizeof(*notifiers));
        if (!notifiers) {
-               goto error;
+               goto error_alloc;
        }
 
        sem_init(&notifiers->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;
 }
This page took 0.023888 seconds and 5 git commands to generate.