Code

destroy flush condition variable
authoroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 10 Jul 2009 05:52:41 +0000 (05:52 +0000)
committeroetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa>
Fri, 10 Jul 2009 05:52:41 +0000 (05:52 +0000)
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk/program@1870 a5681a0c-68f1-0310-ab6d-d61299d08faa

src/rrd_daemon.c

index f997d3ceddbd4060add089914cf95b80b86b3fcf..d8f140e7f875b8ef04621cdbf0cacbab5e19da45 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);