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.3.2~23 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=51321c8cec37a7d8ab1f45a7fe3dcea62fe28c41;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 36ee84f39..6e63432db 100644 --- a/src/bin/lttng/commands/enable_events.c +++ b/src/bin/lttng/commands/enable_events.c @@ -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);