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:32 +0000 (16:19 -0500)
Fix coverity issue 1129187.

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

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