From: Rudolf Polzer Date: Sun, 5 Jun 2011 17:37:50 +0000 (+0200) Subject: fix a slight memory leak X-Git-Tag: xonotic-v0.5.0~11 X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=commitdiff_plain;h=098472b06776d54e8815d818ca752c4a1e87a3cb fix a slight memory leak --- diff --git a/tools/quake3/q3map2/patch.c b/tools/quake3/q3map2/patch.c index 9cd707e2..b977dc7d 100644 --- a/tools/quake3/q3map2/patch.c +++ b/tools/quake3/q3map2/patch.c @@ -266,8 +266,10 @@ void ParsePatch( qboolean onlyLights ) 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();