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();