Fix: Free variable before strdup() in process_event_node
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 17 May 2016 18:12:09 +0000 (14:12 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 May 2016 19:14:51 +0000 (15:14 -0400)
Fixes coverity #1243040

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/config/config.c

index a4d4f04f5230afc071048cb6e63ec23c4e488f6b..0253d58d3d9bedb55c7299ae0aa4eb57a8b7e6e2 100644 (file)
@@ -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) {
This page took 0.027063 seconds and 4 git commands to generate.