[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r9673 - GNUnet/src/util/containers
From: |
gnunet |
Subject: |
[GNUnet-SVN] r9673 - GNUnet/src/util/containers |
Date: |
Wed, 2 Dec 2009 19:37:12 +0100 |
Author: nevans
Date: 2009-12-02 19:37:12 +0100 (Wed, 02 Dec 2009)
New Revision: 9673
Modified:
GNUnet/src/util/containers/heap.c
Log:
fixed heap bug, hopefully
Modified: GNUnet/src/util/containers/heap.c
===================================================================
--- GNUnet/src/util/containers/heap.c 2009-12-02 18:36:45 UTC (rev 9672)
+++ GNUnet/src/util/containers/heap.c 2009-12-02 18:37:12 UTC (rev 9673)
@@ -115,7 +115,7 @@
void *GNUNET_CONTAINER_heap_peek (struct GNUNET_CONTAINER_Heap *root)
{
if ((root == NULL) || (root->root == NULL))
- return NULL;
+ return NULL;
return root->root->element;
}
@@ -347,6 +347,13 @@
{
root->traversal_pos = root->root;
}
+
+ if (last == del_node)
+ {
+ GNUNET_free(last);
+ return ret;
+ }
+
GNUNET_free (last);
root->size--;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r9673 - GNUnet/src/util/containers,
gnunet <=