From: Mathieu Desnoyers Date: Mon, 8 May 2017 11:48:52 +0000 (-0400) Subject: Fix: return NULL pointer on memory allocation failure X-Git-Tag: v2.11.0-rc1~592 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9a09eef5921a5535a9f5e818bcc5133ba23f1d58;p=lttng-tools.git Fix: return NULL pointer on memory allocation failure Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/buffer-usage.c b/src/common/buffer-usage.c index 49696a33f..dfe0d85a1 100644 --- a/src/common/buffer-usage.c +++ b/src/common/buffer-usage.c @@ -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);