All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: jgalar@efficios.com
Cc: lttng-dev@lists.lttng.org
Subject: [PATCH lttng-tools] Fix: return NULL pointer on memory allocation failure
Date: Mon,  8 May 2017 07:48:52 -0400	[thread overview]
Message-ID: <1494244132-10812-1-git-send-email-mathieu.desnoyers__38133.7338862524$1494244156$gmane$org@efficios.com> (raw)

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
---
 src/common/buffer-usage.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/buffer-usage.c b/src/common/buffer-usage.c
index 49696a3..dfe0d85 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);
-- 
2.1.4

_______________________________________________
lttng-dev mailing list
lttng-dev@lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

             reply	other threads:[~2017-05-08 11:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-08 11:48 Mathieu Desnoyers [this message]
     [not found] <1494244132-10812-1-git-send-email-mathieu.desnoyers@efficios.com>
2017-05-09 12:37 ` [PATCH lttng-tools] Fix: return NULL pointer on memory allocation failure Jérémie Galarneau

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='1494244132-10812-1-git-send-email-mathieu.desnoyers__38133.7338862524$1494244156$gmane$org@efficios.com' \
    --to=mathieu.desnoyers@efficios.com \
    --cc=jgalar@efficios.com \
    --cc=lttng-dev@lists.lttng.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.