fix: mem leaks.

This commit is contained in:
iceman1001
2019-02-21 15:34:31 +01:00
parent 06ade9970a
commit 91d6836a47
7 changed files with 22 additions and 14 deletions

View File

@@ -1022,6 +1022,7 @@ int CmdLegicRestore(const char *Cmd){
f = fopen(filename,"rb");
if (!f) {
PrintAndLogEx(WARNING, "File %s not found or locked", filename);
free(data);
return 3;
}