diff options
Diffstat (limited to 'src/util/container_heap.c')
-rw-r--r-- | src/util/container_heap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/container_heap.c b/src/util/container_heap.c index 0f63f957d..54da89f7a 100644 --- a/src/util/container_heap.c +++ b/src/util/container_heap.c | |||
@@ -142,7 +142,7 @@ GNUNET_CONTAINER_heap_create (enum GNUNET_CONTAINER_HeapOrder order) | |||
142 | { | 142 | { |
143 | struct GNUNET_CONTAINER_Heap *heap; | 143 | struct GNUNET_CONTAINER_Heap *heap; |
144 | 144 | ||
145 | heap = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_Heap)); | 145 | heap = GNUNET_new (struct GNUNET_CONTAINER_Heap); |
146 | heap->order = order; | 146 | heap->order = order; |
147 | return heap; | 147 | return heap; |
148 | } | 148 | } |
@@ -351,7 +351,7 @@ GNUNET_CONTAINER_heap_insert (struct GNUNET_CONTAINER_Heap *heap, void *element, | |||
351 | { | 351 | { |
352 | struct GNUNET_CONTAINER_HeapNode *node; | 352 | struct GNUNET_CONTAINER_HeapNode *node; |
353 | 353 | ||
354 | node = GNUNET_malloc (sizeof (struct GNUNET_CONTAINER_HeapNode)); | 354 | node = GNUNET_new (struct GNUNET_CONTAINER_HeapNode); |
355 | node->heap = heap; | 355 | node->heap = heap; |
356 | node->element = element; | 356 | node->element = element; |
357 | node->cost = cost; | 357 | node->cost = cost; |