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

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

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