From: Jérémie Galarneau Date: Wed, 26 Aug 2015 16:00:30 +0000 (-0400) Subject: Report memory allocation failure when copying filter bytecode X-Git-Tag: v2.8.0-rc1~462 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=018096a4c0a6aa7e178795f96151d47e840a6447 Report memory allocation failure when copying filter bytecode Signed-off-by: Jérémie Galarneau --- 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; }