Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
revision: add rev_input_given flag
[gitweb.git]
/
prio-queue.c
diff --git
a/prio-queue.c
b/prio-queue.c
index fc3860fdcb9fc50d4d883e1a8638cca474cfb8d0..126d09672738533b6ecc6b94b7405dff888bbaf6 100644
(file)
--- a/
prio-queue.c
+++ b/
prio-queue.c
@@
-27,10
+27,9
@@
void prio_queue_reverse(struct prio_queue *queue)
void clear_prio_queue(struct prio_queue *queue)
{
-
free
(queue->array);
+
FREE_AND_NULL
(queue->array);
queue->nr = 0;
queue->alloc = 0;
- queue->array = NULL;
queue->insertion_ctr = 0;
}