Fix: return NULL pointer on memory allocation failure
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 8 May 2017 11:48:52 +0000 (07:48 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 9 May 2017 12:34:04 +0000 (08:34 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
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.026809 seconds and 5 git commands to generate.