From 4d3c983a165f028ba583e467cd18bc493b576eb9 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sun, 5 Jun 2011 19:37:50 +0200 Subject: [PATCH] fix a slight memory leak --- tools/quake3/q3map2/patch.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/quake3/q3map2/patch.c b/tools/quake3/q3map2/patch.c index fc2ef6c5..af666d1f 100644 --- a/tools/quake3/q3map2/patch.c +++ b/tools/quake3/q3map2/patch.c @@ -271,8 +271,10 @@ void ParsePatch( qboolean onlyLights ){ // if brush primitives format, we may have some epairs to ignore here GetToken( qtrue ); if ( g_bBrushPrimit != BPRIMIT_OLDBRUSHES && strcmp( token,"}" ) ) { - // NOTE: we leak that! ep = ParseEPair(); + free( ep->key ); + free( ep->value ); + free( ep ); } else{ UnGetToken();