aboutsummaryrefslogtreecommitdiff
path: root/src/util/container_heap.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-09-22 19:13:41 +0000
committerChristian Grothoff <christian@grothoff.org>2009-09-22 19:13:41 +0000
commit5aea0d528a4352d4da533dc5021fdb92ddca8c83 (patch)
treed2752a86a1bcd33a1f1a32edaf6ac3f31b370f6d /src/util/container_heap.c
parent4ad96e182037d35ec6e62a8bfb1d2ea9b14be106 (diff)
downloadgnunet-5aea0d528a4352d4da533dc5021fdb92ddca8c83.tar.gz
gnunet-5aea0d528a4352d4da533dc5021fdb92ddca8c83.zip
useless
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}