From: Mathieu Desnoyers Date: Wed, 12 Dec 2018 20:11:14 +0000 (-0500) Subject: Fix: notification thread: free session trigger list on error X-Git-Tag: v2.11.0-rc2~91 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6330b03b8010a5481c7649fd2f65f547cc0ebcd9;p=lttng-tools.git Fix: notification thread: free session trigger list on error Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c index ba4e5a057..3482a7e89 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -1518,6 +1518,7 @@ struct session_info *find_or_create_session_info( if (!session) { ERR("[notification-thread] Failed to allocation session info for session \"%s\" (uid = %i, gid = %i)", name, uid, gid); + lttng_session_trigger_list_destroy(trigger_list); goto error; } trigger_list = NULL;