Fix: sessiond: fix memory leak in receive_lttng_trigger
[lttng-tools.git] / src / bin / lttng-sessiond / session.c
index a4d1163399e7cd74975b754b8c51160d1eb189f1..bb3b63b3a31dc407d7dde1ba3c9680e74e221925 100644 (file)
@@ -954,7 +954,7 @@ void session_release(struct urcu_ref *ref)
         * Must notify the kernel thread here to update it's poll set in order to
         * remove the channel(s)' fd just destroyed.
         */
-       ret = notify_thread_pipe(kernel_poll_pipe[1]);
+       ret = notify_thread_pipe(the_kernel_poll_pipe[1]);
        if (ret < 0) {
                PERROR("write kernel poll pipe");
        }
@@ -989,6 +989,7 @@ void session_release(struct urcu_ref *ref)
                 * Broadcast after free-ing to ensure the memory is
                 * reclaimed before the main thread exits.
                 */
+               ASSERT_LOCKED(ltt_session_list.lock);
                pthread_cond_broadcast(&ltt_session_list.removal_cond);
        }
 }
This page took 0.022657 seconds and 4 git commands to generate.