X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fwrite_riemann.c;h=86f0c1fac5e2dddd2543e69a480c86ff6f345c03;hb=9fa98875d6cf81b20c03156ccaf7f081dfa7d1a5;hp=6db3ef58ac88349adfd274cb1d1015e7cf9f4089;hpb=7f38ca96e3a54a4b02475f857c7d79c6a1257ada;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 */