From 2bc8a01a31ebfa4fc2496a04293bb52ba8fe1ea1 Mon Sep 17 00:00:00 2001 From: Kevin Shanahan Date: Wed, 6 Mar 2013 11:32:04 +1030 Subject: [PATCH] qbsp: free the leaks array after writing leak file Signed-off-by: Kevin Shanahan --- qbsp/outside.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qbsp/outside.c b/qbsp/outside.c index 98fd50dc..130a79e9 100644 --- a/qbsp/outside.c +++ b/qbsp/outside.c @@ -499,6 +499,7 @@ FillOutside(node_t *node, const int hullnum, const int numportals) fprintf(PorFile, "%11i", fillstate.bspleak.numportals); fclose(PorFile); } + FreeMem(fillstate.bspleak.leaks, OTHER, sizeof(portal_t *) * numportals); map.leakfile = true; // Get rid of .prt file if .pts file is generated