From 4fdd7193481b638a059d6fa047542312e41ea45e Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 17 Nov 2017 17:16:39 +0100 Subject: [PATCH] write_riemann plugin: Unlock mutex before destroying it. CID: 179227 --- src/write_riemann.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/write_riemann.c b/src/write_riemann.c index 3835a3d5..00852ffb 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -601,6 +601,7 @@ static void wrr_free(void *p) /* {{{ */ wrr_disconnect(host); + pthread_mutex_lock(&host->lock); pthread_mutex_destroy(&host->lock); sfree(host); } /* }}} void wrr_free */ -- 2.30.2