From baacc39b5ba340768141770a1b1d7c746890733d Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 8 Mar 2016 11:11:33 -0500 Subject: [PATCH] Fix: syscalls hash table leaks when listing kernel events MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- src/bin/lttng-sessiond/syscall.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.34.1