Fix: relayd control socket mutex is not destroyed
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Sep 2018 21:04:45 +0000 (17:04 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Sep 2018 21:25:36 +0000 (17:25 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c

index 22f223694270e67e28b70267c01579a846a1e53e..68b63edaac815148c330c91b74611075ea5949c9 100644 (file)
@@ -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);
 }
 
This page took 0.032649 seconds and 4 git commands to generate.