fix few mem leaks

This commit is contained in:
Philippe Teuwen committed 2019-10-06 01:18:04 +02:00
1 parent 78c153fe74
commit 1f364106ce
14 files changed
+31 -15

No files matched your search

+1
View File
@@ -60,6 +60,7 @@ static int CmdScriptRun(const char *Cmd) {
int error;
if (luascriptfile_idx == MAX_NESTED_LUASCRIPT) {
PrintAndLogEx(ERR, "Too many nested scripts, skipping %s\n", script_path);
free(script_path);
return PM3_EMALLOC;
}
PrintAndLogEx(SUCCESS, "Executing Lua script: %s, args '%s'\n", script_path, arguments);