destroy flush condition variable
[rrdtool.git] / src / rrd_daemon.c
index f997d3c..d8f140e 100644 (file)
@@ -656,6 +656,7 @@ static void *free_cache_item(cache_item_t *ci) /* {{{ */
 
   /* in case anyone is waiting */
   pthread_cond_broadcast(&ci->flushed);
+  pthread_cond_destroy(&ci->flushed);
 
   free (ci);