From: Florian Forster Date: Mon, 20 Nov 2017 10:19:52 +0000 (+0100) Subject: write_tsdb plugin: Unlock mutex before destroying it. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d1599c48cac964a6e8b815df7f87dd24a55b1d29;p=collectd.git write_tsdb plugin: Unlock mutex before destroying it. CID: 179224 --- diff --git a/src/write_tsdb.c b/src/write_tsdb.c index 0c87c473..9cb3c97d 100644 --- a/src/write_tsdb.c +++ b/src/write_tsdb.c @@ -219,6 +219,7 @@ static void wt_callback_free(void *data) { sfree(cb->service); sfree(cb->host_tags); + pthread_mutex_unlock(&cb->send_lock); pthread_mutex_destroy(&cb->send_lock); sfree(cb);