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.6.3~34 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=440e7c9b2a9f4b1df8fbd16d021fbbed361cb84c;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 21d95ad51..0b119c4f1 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -1545,6 +1545,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) {