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.7.2~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=baacc39b5ba340768141770a1b1d7c746890733d;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 43c0a2010..f47cd4539 100644 --- a/src/bin/lttng-sessiond/syscall.c +++ b/src/bin/lttng-sessiond/syscall.c @@ -428,6 +428,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;