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
commitee3eae4fdfd7aae3f33cb9f5e77f46dc6215330f (patch)
treecbcda3fc1d3703f7d1e6ad21c159400378bd67f9 /queue.c
parent121b54e95998504cfa3d00aefc10dfbb129349eb (diff)
downloadopenttd-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.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);
}