Merge branch 'collectd-5.7' into collectd-5.8
[collectd.git] / src / write_riemann.c
index 6db3ef5..86f0c1f 100644 (file)
@@ -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 */