X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Futils_heap.c;h=8637581149c890f45577cabb1e902099f52fb82b;hb=4d370741101aeb037ae52f3529a4a0869e0dc08a;hp=ae502c90ea7736a50e65972fc1a1917f7fa833c5;hpb=f14bb45d570e0b34bdd3a2a0cadfe414c3dfda40;p=collectd.git diff --git a/src/daemon/utils_heap.c b/src/daemon/utils_heap.c index ae502c90..86375811 100644 --- a/src/daemon/utils_heap.c +++ b/src/daemon/utils_heap.c @@ -25,7 +25,6 @@ **/ #include -#include #include #include #include @@ -173,7 +172,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 */