Fix: event notifier group context leak
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 15:41:46 +0000 (11:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 13 Apr 2021 15:44:05 +0000 (11:44 -0400)
The event notifier group should destroy its context when it is itself
destroyed.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I4643abac0985b5a3e1798122008f7a27c2d5c383

src/liblttng-ust/lttng-events.c

index ed11b3b5cdbf512c81eacbfddd6c329bb5a0f83e..767a18729f83d6be4407f5cf2c92a7a119af510a 100644 (file)
@@ -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);
 }
 
This page took 0.026252 seconds and 4 git commands to generate.