From: Jérémie Galarneau Date: Wed, 12 Dec 2018 03:42:19 +0000 (-0500) Subject: Fix: missing session reference release on kernel poll update X-Git-Tag: v2.11.0-rc2~101 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c59b0313b109adc89fe85eeb692154aa0c503e1a;p=lttng-tools.git Fix: missing session reference release on kernel poll update The iteration performed on all sessions in update_kernel_poll() does not release the reference taken on the sessions. This causes the session(s) to be leaked and prevents the shutdown of the session daemon as it waits for all sessions to be destroyed before completing its teardown. Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/manage-kernel.c b/src/bin/lttng-sessiond/manage-kernel.c index 35547743c..56bc0a93c 100644 --- a/src/bin/lttng-sessiond/manage-kernel.c +++ b/src/bin/lttng-sessiond/manage-kernel.c @@ -70,6 +70,7 @@ static int update_kernel_poll(struct lttng_poll_event *events) DBG("Channel fd %d added to kernel set", channel->fd); } session_unlock(session); + session_put(session); } session_unlock_list();