Fix: memory leak when UST events are enabled with exclusions
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Jan 2014 17:51:12 +0000 (12:51 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 4 Feb 2014 18:52:37 +0000 (13:52 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/trace-ust.c
src/bin/lttng-sessiond/trace-ust.h

index 70b3a91a30edb48689a4b5c2f0f988783ff4317a..c08246a25a9f441360fb5ad4a1b6c5ef1a04d7e0 100644 (file)
@@ -504,6 +504,7 @@ void trace_ust_destroy_event(struct ltt_ust_event *event)
 
        DBG2("Trace destroy UST event %s", event->attr.name);
        free(event->filter);
+       free(event->exclusion);
        free(event);
 }
 
index f2f8c7e3654bfe3be456d1e32e3a711bf48c3d7d..07af0f1eeb96ac74d57aa87b679989e6570d6572 100644 (file)
@@ -50,7 +50,7 @@ struct ltt_ust_event {
        struct lttng_ust_event attr;
        struct lttng_ht_node_str node;
        struct lttng_ust_filter_bytecode *filter;
-       const struct lttng_event_exclusion *exclusion;
+       struct lttng_event_exclusion *exclusion;
 };
 
 /* UST channel */
This page took 0.030752 seconds and 4 git commands to generate.