fix a slight memory leak
This commit is contained in:
parent
2af64392f8
commit
098472b067
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user