Browse Source

memleak fix

AzaezelX 4 years ago
parent
commit
1d71ee70e8
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Engine/source/console/console.cpp

+ 1 - 0
Engine/source/console/console.cpp

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