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