fix a slight memory leak

This commit is contained in:
Rudolf Polzer 2011-06-05 19:37:50 +02:00
parent 2af64392f8
commit 098472b067

View File

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