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