From: Mathieu Desnoyers Date: Tue, 13 Apr 2021 15:41:46 +0000 (-0400) Subject: Fix: event notifier group context leak X-Git-Tag: v2.13.0-rc1~141 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bd515d28b67d421b0944a193a86e61b903f63270;p=lttng-ust.git Fix: event notifier group context leak The event notifier group should destroy its context when it is itself destroyed. Signed-off-by: Mathieu Desnoyers Change-Id: I4643abac0985b5a3e1798122008f7a27c2d5c383 --- diff --git a/src/liblttng-ust/lttng-events.c b/src/liblttng-ust/lttng-events.c index ed11b3b5..767a1872 100644 --- a/src/liblttng-ust/lttng-events.c +++ b/src/liblttng-ust/lttng-events.c @@ -379,7 +379,7 @@ void lttng_event_notifier_group_destroy( lttng_ust_unlock_fd_tracker(); cds_list_del(&event_notifier_group->node); - + lttng_destroy_context(event_notifier_group->ctx); free(event_notifier_group); }