fix few mem leaks
This commit is contained in:
1 parent
78c153fe74
commit
1f364106ce
14 files changed
+31
-15
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user