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.11.0-rc1~139 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4bd5b4af0f6c1f1ebc3a85696d0a09a7d24ad59c;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 05fe29744..9d006845f 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.c +++ b/src/bin/lttng-sessiond/notification-thread-events.c @@ -715,6 +715,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; }