Fix: leak of channel-bound trigger list element
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 29 Jun 2022 20:37:54 +0000 (16:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Jul 2022 15:43:43 +0000 (11:43 -0400)
The list element is never free'd when a channel-bound trigger
is unregistered.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I32c4ee4512c460363e3384c2e3aac9feff4343b1

src/bin/lttng-sessiond/notification-thread-events.cpp

index 1e21fffe7bfb689525b082a1492552021f861108..a93b4cb95975a90356b052bdfce798bffbfff504 100644 (file)
@@ -3278,6 +3278,7 @@ int handle_notification_thread_command_unregister_trigger(
 
                                DBG("Removed trigger from channel_triggers_ht");
                                cds_list_del(&trigger_element->node);
+                               free(trigger_element);
                                /* A trigger can only appear once per channel */
                                break;
                        }
This page took 0.026829 seconds and 4 git commands to generate.