From: Jérémie Galarneau Date: Tue, 8 Mar 2016 16:11:33 +0000 (-0500) Subject: Fix: syscalls hash table leaks when listing kernel events X-Git-Tag: v2.8.0-rc1~105 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=da60cf073ac81b8f903af876c31bd0a94c053c4b;p=lttng-tools.git Fix: syscalls hash table leaks when listing kernel events Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/syscall.c b/src/bin/lttng-sessiond/syscall.c index 7b9227b86..4c491995a 100644 --- a/src/bin/lttng-sessiond/syscall.c +++ b/src/bin/lttng-sessiond/syscall.c @@ -427,6 +427,10 @@ ssize_t syscall_list_channel(struct ltt_kernel_channel *kchan, count++; } + rcu_read_lock(); + destroy_syscall_ht(syscalls_ht); + rcu_read_unlock(); + *_events = events; return count;