thread = zmalloc(sizeof(*thread));
if (!thread) {
- goto error;
+ goto error_alloc;
}
urcu_ref_init(&thread->ref);
/* Release list reference. */
lttng_thread_put(thread);
pthread_mutex_unlock(&thread_list.lock);
-error:
/* Release initial reference. */
lttng_thread_put(thread);
+error_alloc:
return NULL;
}