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.8.0~52 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e9d6d1109d7a251147ea226705ade0a28f35932d;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/session-config.c b/src/common/config/session-config.c index 313010d24..9df815bff 100644 --- a/src/common/config/session-config.c +++ b/src/common/config/session-config.c @@ -1611,6 +1611,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) {