Fix: client_list_element leak on failure to evaluate a condition
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 20 Aug 2018 21:14:06 +0000 (17:14 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 7 Sep 2018 16:15:37 +0000 (12:15 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/notification-thread-events.c

index 2f738bb047db0b3656c2a215dcb7143b49792707..6777fd6dd1f3b34f228981bd4b9aaf30a27dd07e 100644 (file)
@@ -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;
        }
 
This page took 0.045648 seconds and 4 git commands to generate.