diff options
author | tron <tron@openttd.org> | 2005-12-27 20:44:42 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-12-27 20:44:42 +0000 |
commit | ee3eae4fdfd7aae3f33cb9f5e77f46dc6215330f (patch) | |
tree | cbcda3fc1d3703f7d1e6ad21c159400378bd67f9 /queue.c | |
parent | 121b54e95998504cfa3d00aefc10dfbb129349eb (diff) | |
download | openttd-ee3eae4fdfd7aae3f33cb9f5e77f46dc6215330f.tar.xz |
(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)
Diffstat (limited to 'queue.c')
-rw-r--r-- | queue.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); } |