From: Florian Forster Date: Mon, 20 Nov 2017 10:18:32 +0000 (+0100) Subject: write_graphite plugin: Unlock mutex before destroying it. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=6e216c190aa71359a9cdd2d610dfd8c2b912773d;p=collectd.git write_graphite plugin: Unlock mutex before destroying it. CID: 179225 --- 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);