aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r--src/util/container_heap.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c
index fd5838f60..c420a0ae4 100644
--- a/src/util/container_heap.c
+++ b/src/util/container_heap.c
@@ -124,12 +124,8 @@ GNUNET_CONTAINER_heap_create (enum GNUNET_CONTAINER_HeapOrder type)
124void 124void
125GNUNET_CONTAINER_heap_destroy (struct GNUNET_CONTAINER_Heap *heap) 125GNUNET_CONTAINER_heap_destroy (struct GNUNET_CONTAINER_Heap *heap)
126{ 126{
127 void *unused;
128 while (heap->size > 0) 127 while (heap->size > 0)
129 { 128 GNUNET_CONTAINER_heap_remove_root (heap);
130 unused = GNUNET_CONTAINER_heap_remove_root (heap);
131 }
132
133 GNUNET_free (heap); 129 GNUNET_free (heap);
134 return; 130 return;
135} 131}