From: Jérémie Galarneau Date: Wed, 29 Jun 2022 20:37:54 +0000 (-0400) Subject: Fix: leak of channel-bound trigger list element X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6dcdb62c636ef8e6c8dae796d1197a0414fca9f7;p=lttng-tools.git Fix: leak of channel-bound trigger list element The list element is never free'd when a channel-bound trigger is unregistered. Signed-off-by: Jérémie Galarneau Change-Id: I32c4ee4512c460363e3384c2e3aac9feff4343b1 --- diff --git a/src/bin/lttng-sessiond/notification-thread-events.cpp b/src/bin/lttng-sessiond/notification-thread-events.cpp index 1e21fffe7..a93b4cb95 100644 --- a/src/bin/lttng-sessiond/notification-thread-events.cpp +++ b/src/bin/lttng-sessiond/notification-thread-events.cpp @@ -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; }