diff options
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index b9cab1e9c..e2a27002a 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c | |||
@@ -400,6 +400,8 @@ GNUNET_CONTAINER_heap_remove_root (struct GNUNET_CONTAINER_Heap *heap) | |||
400 | heap->root = root->left_child; | 400 | heap->root = root->left_child; |
401 | insert_node (heap, heap->root, root->right_child); | 401 | insert_node (heap, heap->root, root->right_child); |
402 | } | 402 | } |
403 | if (heap->walk_pos == root) | ||
404 | heap->walk_pos = heap->root; | ||
403 | GNUNET_free (root); | 405 | GNUNET_free (root); |
404 | #if EXTRA_CHECKS | 406 | #if EXTRA_CHECKS |
405 | GNUNET_assert (((heap->size == 0) && (heap->root == NULL)) || | 407 | GNUNET_assert (((heap->size == 0) && (heap->root == NULL)) || |