Fix: resource leak in enable-event command
authorDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 21:02:14 +0000 (16:02 -0500)
committerDavid Goulet <dgoulet@efficios.com>
Thu, 28 Nov 2013 21:19:49 +0000 (16:19 -0500)
Fix coverity issue 1129187.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng/commands/enable_events.c

index 18793ae095a77cbe8365f09ac0576a06011ea407..8255733033e33580769d09175a49fa99340fa749 100644 (file)
@@ -605,6 +605,7 @@ static int enable_events(char *session_name)
                                                        opt_filter);
                                        break;
                                }
+                               free(exclusion_string);
                                goto error;
                        } else {
                                MSG("Filter '%s' successfully set", opt_filter);
This page took 0.025923 seconds and 4 git commands to generate.