Fix: return NULL pointer on memory allocation failure
[lttng-tools.git] / src / common / buffer-usage.c
index 49696a33f8e7883e9688df10807bada844778568..dfe0d85a169b70b9c7589511219bbb9e55c2a81c 100644 (file)
@@ -231,7 +231,7 @@ struct lttng_condition *lttng_condition_buffer_usage_create(
 
        condition = zmalloc(sizeof(struct lttng_condition_buffer_usage));
        if (!condition) {
-               goto end;
+               return NULL;
        }
 
        lttng_condition_init(&condition->parent, type);
This page took 0.022632 seconds and 4 git commands to generate.