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.7.0-rc2~128 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=a745883a2013688472ba394ced732dbe50dc1443;p=lttng-tools.git 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 1c3f381dc..2bbca0040 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -1765,6 +1765,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; }