From: Jérémie Galarneau Date: Mon, 20 Aug 2018 21:14:06 +0000 (-0400) Subject: Fix: client_list_element leak on failure to evaluate a condition X-Git-Tag: v2.10.6~48 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d39ea393542d8c8c29ca063bd435c6a278be042d;p=lttng-tools.git Fix: client_list_element leak on failure to evaluate a condition 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 2f738bb04..6777fd6dd 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -565,6 +565,7 @@ int notification_thread_client_subscribe(struct notification_client *client, client, state)) { WARN("[notification-thread] Evaluation of a condition on client subscription failed, aborting."); ret = -1; + free(client_list_element); goto end_unlock; }