From 018096a4c0a6aa7e178795f96151d47e840a6447 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Wed, 26 Aug 2015 12:00:30 -0400 Subject: [PATCH] Report memory allocation failure when copying filter bytecode MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/cmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 01969b2b9..ed878f9b1 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1779,6 +1779,7 @@ static int _cmd_enable_event(struct ltt_session *session, sizeof(struct lttng_filter_bytecode) + filter->len); if (!filter_copy) { + ret = LTTNG_ERR_NOMEM; goto error; } -- 2.34.1