Report memory allocation failure when copying filter bytecode
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 26 Aug 2015 16:00:30 +0000 (12:00 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Sep 2015 12:53:59 +0000 (08:53 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index 1c3f381dcacea4072a912ae36f8891ecebea8498..2bbca00404b631014f6261d9abb9e17d69368e90 100644 (file)
@@ -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;
                                }
 
This page took 0.027693 seconds and 4 git commands to generate.