From: Jérémie Galarneau Date: Mon, 20 Jan 2014 17:51:12 +0000 (-0500) Subject: Fix: memory leak when UST events are enabled with exclusions X-Git-Tag: v2.4.0-rc5~59 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=11cfa3b789ad0da03b6f764e69110f337f251fc5;p=lttng-tools.git Fix: memory leak when UST events are enabled with exclusions Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/trace-ust.c b/src/bin/lttng-sessiond/trace-ust.c index 70b3a91a3..c08246a25 100644 --- a/src/bin/lttng-sessiond/trace-ust.c +++ b/src/bin/lttng-sessiond/trace-ust.c @@ -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); } diff --git a/src/bin/lttng-sessiond/trace-ust.h b/src/bin/lttng-sessiond/trace-ust.h index f2f8c7e36..07af0f1ee 100644 --- a/src/bin/lttng-sessiond/trace-ust.h +++ b/src/bin/lttng-sessiond/trace-ust.h @@ -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 */