X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=86f0c1fac5e2dddd2543e69a480c86ff6f345c03;hb=97967b03d0b7ded714f038cb55ed17b642809d53;hp=6db3ef58ac88349adfd274cb1d1015e7cf9f4089;hpb=aecd05a0a0ec4d745506a67a937de6d1d6b33db5;p=collectd.git diff --git a/src/write_riemann.c b/src/write_riemann.c index 6db3ef58..86f0c1fa 100644 --- a/src/write_riemann.c +++ b/src/write_riemann.c @@ -610,6 +610,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 */