memleak fix

This commit is contained in:
AzaezelX 2020-09-25 12:25:35 -05:00
parent add299e1b8
commit 1d71ee70e8

View file

@ -1496,6 +1496,7 @@ ConsoleValueRef _internalExecute(S32 argc, ConsoleValueRef argv[])
}
bool result;
const char* methodRes = CInterface::CallFunction(NULL, argv[0], argv_str, argc - 1, &result);
free(argv_str);
if (result)
{
return ConsoleValueRef::fromValue(CSTK.pushString(methodRes));