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.9.0-rc1~202 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=02d8ac3daf181dc8b07bf206e8cd855e74e3fcd8;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) {