X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=00852ffbf2c851665196252ea45f2b445d8655f0;hp=3835a3d58b09e04234c7b3281ed167876042dfa9;hb=4fdd7193481b638a059d6fa047542312e41ea45e;hpb=f123d3873170fb2bc06a1ea03396e57128d2ab63 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 */