Fix freeing source while parsing botfiles/items.c
This commit is contained in:
parent
3041eee0cf
commit
372b07a97a
|
@ -310,7 +310,7 @@ itemconfig_t *LoadItemConfig(char *filename)
|
|||
if (!PC_ExpectTokenType(source, TT_STRING, 0, &token))
|
||||
{
|
||||
FreeMemory(ic);
|
||||
FreeMemory(source);
|
||||
FreeSource(source);
|
||||
return NULL;
|
||||
} //end if
|
||||
StripDoubleQuotes(token.string);
|
||||
|
|
Loading…
Reference in New Issue