From 098472b06776d54e8815d818ca752c4a1e87a3cb 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 9cd707e..b977dc7 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(); -- 2.39.2