X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_heap.c;h=19b1d5b9db31c4b3e7ae10dbfc29daccac95cde8;hb=e7ff69ca970e01edb1b15d79fc1b8dcfaa43e597;hp=ae502c90ea7736a50e65972fc1a1917f7fa833c5;hpb=91103db5378a036c0e4da9d512f686d9d0096ff7;p=collectd.git diff --git a/src/daemon/utils_heap.c b/src/daemon/utils_heap.c index ae502c90..19b1d5b9 100644 --- a/src/daemon/utils_heap.c +++ b/src/daemon/utils_heap.c @@ -173,7 +173,7 @@ int c_heap_insert (c_heap_t *h, void *ptr) /* Reorganize the heap from bottom up. */ reheap (h, /* parent of this node = */ (index - 1) / 2, DIR_UP); - + pthread_mutex_unlock (&h->lock); return (0); } /* int c_heap_insert */