1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-18 03:59:09 +00:00

(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

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);
}