(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)

This commit is contained in:
tron
2005-12-27 20:44:42 +00:00
parent 121b54e959
commit ee3eae4fdf

View File

@@ -284,6 +284,7 @@ static void BinaryHeap_Free(Queue* q, bool free_values)
break; break;
free(q->data.binaryheap.elements[i]); free(q->data.binaryheap.elements[i]);
} }
free(q->data.binaryheap.elements);
if (q->freeq) if (q->freeq)
free(q); free(q);
} }