[lttng-dev] [PATCH lttng-tools 1/2] Fix: notification thread: free session trigger list on error

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Wed Dec 12 15:11:14 EST 2018


Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers at efficios.com>
---
 src/bin/lttng-sessiond/notification-thread-events.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/bin/lttng-sessiond/notification-thread-events.c b/src/bin/lttng-sessiond/notification-thread-events.c
index ba4e5a05..3482a7e8 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;
-- 
2.11.0



More information about the lttng-dev mailing list