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>
Mon, 20 Aug 2018 21:14:06 +0000 (17:14 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/notification-thread-events.c

index 05fe297449e01727c14fccd0b055032b0f3cbe84..9d006845fb93a362c5289065e8398fd3412bdaf1 100644 (file)
@@ -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;
        }
 
This page took 0.02651 seconds and 4 git commands to generate.