From: Michael Jeanson Date: Tue, 17 May 2016 18:12:09 +0000 (-0400) Subject: Fix: Free variable before strdup() in process_event_node X-Git-Tag: v2.7.3~44 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6bd1b5e05d9943287994cfe38767934e00e56f07;p=lttng-tools.git Fix: Free variable before strdup() in process_event_node Fixes coverity #1243040 Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/config/config.c b/src/common/config/config.c index a4d4f04f5..0253d58d3 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -1560,6 +1560,7 @@ int process_event_node(xmlNodePtr event_node, struct lttng_handle *handle, goto end; } + free(filter_expression); filter_expression = strdup((char *) content); free(content); if (!filter_expression) {