From 6e216c190aa71359a9cdd2d610dfd8c2b912773d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 20 Nov 2017 11:18:32 +0100 Subject: [PATCH] write_graphite plugin: Unlock mutex before destroying it. CID: 179225 --- src/write_graphite.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write_graphite.c b/src/write_graphite.c index b85ab470..13adff50 100644 --- a/src/write_graphite.c +++ b/src/write_graphite.c @@ -312,6 +312,7 @@ static void wg_callback_free(void *data) { sfree(cb->prefix); sfree(cb->postfix); + pthread_mutex_unlock(&cb->send_lock); pthread_mutex_destroy(&cb->send_lock); sfree(cb); -- 2.11.0