Fix: missing RCU read side critical sections
[lttng-tools.git] / src / bin / lttng-sessiond / lttng-syscall.cpp
index f14563457aeff498f1815d83c5725ce316febf76..42e902b5e2eccb3c964f8cd033a1d0306fd49d93 100644 (file)
@@ -156,6 +156,8 @@ static void destroy_syscall_ht(struct lttng_ht *ht)
        struct lttng_ht_iter iter;
        struct syscall *ksyscall;
 
+       ASSERT_RCU_READ_LOCKED();
+
        DBG3("Destroying syscall hash table.");
 
        if (!ht) {
@@ -169,7 +171,7 @@ static void destroy_syscall_ht(struct lttng_ht *ht)
                LTTNG_ASSERT(!ret);
                free(ksyscall);
        }
-       ht_cleanup_push(ht);
+       lttng_ht_destroy(ht);
 }
 
 /*
This page took 0.027906 seconds and 4 git commands to generate.