(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)
authortron
Tue, 27 Dec 2005 20:44:42 +0000
changeset 2799 739481fa6cb9
parent 2798 b0e26ead5de8
child 2800 4ab0cd77edf1
(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)
queue.c
--- a/queue.c	Tue Dec 27 16:37:50 2005 +0000
+++ b/queue.c	Tue Dec 27 20:44:42 2005 +0000
@@ -284,6 +284,7 @@
 			break;
 		free(q->data.binaryheap.elements[i]);
 	}
+	free(q->data.binaryheap.elements);
 	if (q->freeq)
 		free(q);
 }