diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-22 19:13:41 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-22 19:13:41 +0000 |
commit | 5aea0d528a4352d4da533dc5021fdb92ddca8c83 (patch) | |
tree | d2752a86a1bcd33a1f1a32edaf6ac3f31b370f6d /src/util/container_heap.c | |
parent | 4ad96e182037d35ec6e62a8bfb1d2ea9b14be106 (diff) | |
download | gnunet-5aea0d528a4352d4da533dc5021fdb92ddca8c83.tar.gz gnunet-5aea0d528a4352d4da533dc5021fdb92ddca8c83.zip |
useless
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 6 |
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) | |||
124 | void | 124 | void |
125 | GNUNET_CONTAINER_heap_destroy (struct GNUNET_CONTAINER_Heap *heap) | 125 | GNUNET_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 | } |