diff options
author | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
---|---|---|
committer | LRN <lrn1986@gmail.com> | 2013-12-19 06:00:23 +0000 |
commit | e0ca7357cd0bfedc5c29cb731b56279fef8da059 (patch) | |
tree | ecfd47cf59bc00e656b53fd59c58f5038e342d65 /src/util/container_heap.c | |
parent | 92fd84dc7ef98452f848a62677c61a2b80b5835e (diff) | |
download | gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.tar.gz gnunet-e0ca7357cd0bfedc5c29cb731b56279fef8da059.zip |
malloc -> new
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; |