Fix: syscalls hash table leaks when listing kernel events
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 16:11:33 +0000 (11:11 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Mar 2016 20:56:19 +0000 (15:56 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/syscall.c

index 43c0a2010225a804763b6843bd7329a44c542726..f47cd4539a8f6c980422141eb32e0a4c3da72bba 100644 (file)
@@ -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;
This page took 0.025548 seconds and 4 git commands to generate.