(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 6319e8910f
commit 0f03d94fbe
1 changed files with 1 additions and 0 deletions

View File

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