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:32:07 +0000 (17:32 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c

index 106c705f1b0cc48cd294c8442aa5d42ff2feacc2..7ae40c57c564a10c2bffbdff5c99618cdf37fff1 100644 (file)
@@ -320,6 +320,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.027431 seconds and 4 git commands to generate.