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>
Wed, 23 Sep 2015 19:51:24 +0000 (15:51 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/cmd.c

index ff7d993265082439672a12ffed175809b942e9cd..b6dbccc827a19790ac8c06ebaea6ca0bede8d5e6 100644 (file)
@@ -1616,6 +1616,7 @@ int cmd_enable_event(struct ltt_session *session, struct lttng_domain *domain,
                                        sizeof(struct lttng_filter_bytecode)
                                        + filter->len);
                                if (!filter_copy) {
+                                       ret = LTTNG_ERR_NOMEM;
                                        goto error;
                                }
 
This page took 0.027361 seconds and 4 git commands to generate.