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 | 0f03d94fbed241109e1f799de69319fbe9758820 (patch) | |
tree | cbcda3fc1d3703f7d1e6ad21c159400378bd67f9 | |
parent | 6319e8910f2c6cf0e9d37a472bd4d5fe135fa6eb (diff) | |
download | openttd-0f03d94fbed241109e1f799de69319fbe9758820.tar.xz |
(svn r3347) Plug a memory leak (Found by Valgrind using Truelight ... or was it the other way round?)
-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); } |