X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_heap.c;h=19b1d5b9db31c4b3e7ae10dbfc29daccac95cde8;hb=2bdca8f7211d2dce43d20eae9ce877a29b71cb9e;hp=ae502c90ea7736a50e65972fc1a1917f7fa833c5;hpb=f14bb45d570e0b34bdd3a2a0cadfe414c3dfda40;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 */