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 20:38:22 +0000 (16:38 -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 21d95ad51e5a35ab4c7024fc0236c2763a5491de..0b119c4f16995b573b4ba6008bb3c29b16e06160 100644 (file)
@@ -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) {
This page took 0.028186 seconds and 4 git commands to generate.