From: David Goulet Date: Thu, 28 Nov 2013 21:02:14 +0000 (-0500) Subject: Fix: resource leak in enable-event command X-Git-Tag: v2.4.0-rc2~10 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b69793ae348c961416a0b40c296dcb2e7583e8f2;p=lttng-tools.git Fix: resource leak in enable-event command Fix coverity issue 1129187. Signed-off-by: David Goulet --- diff --git a/src/bin/lttng/commands/enable_events.c b/src/bin/lttng/commands/enable_events.c index eaae4941b..c502a4875 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -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",