summaryrefslogtreecommitdiff
path: root/queue.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-12-27 20:44:42 +0000
committertron <tron@openttd.org>2005-12-27 20:44:42 +0000
commit0f03d94fbed241109e1f799de69319fbe9758820 (patch)
treecbcda3fc1d3703f7d1e6ad21c159400378bd67f9 /queue.c
parent6319e8910f2c6cf0e9d37a472bd4d5fe135fa6eb (diff)
downloadopenttd-0f03d94fbed241109e1f799de69319fbe9758820.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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/queue.c b/queue.c
index 2fad5c3ed..08e018e7b 100644
--- a/queue.c
+++ b/queue.c
@@ -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);
}