From: Jérémie Galarneau Date: Thu, 13 Sep 2018 21:04:45 +0000 (-0400) Subject: Fix: relayd control socket mutex is not destroyed X-Git-Tag: v2.10.6~28 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=7f3df516ae76dd62d066c2b65b34ae59ce04bd79;p=lttng-tools.git Fix: relayd control socket mutex is not destroyed Signed-off-by: Jérémie Galarneau --- diff --git a/src/common/consumer/consumer.c b/src/common/consumer/consumer.c index 22f223694..68b63edaa 100644 --- a/src/common/consumer/consumer.c +++ b/src/common/consumer/consumer.c @@ -323,6 +323,7 @@ static void free_relayd_rcu(struct rcu_head *head) (void) relayd_close(&relayd->control_sock); (void) relayd_close(&relayd->data_sock); + pthread_mutex_destroy(&relayd->ctrl_sock_mutex); free(relayd); }