loadFile: fix double free

This commit is contained in:
Philippe Teuwen 2019-03-08 19:49:12 +01:00
commit abddff513e
3 changed files with 6 additions and 12 deletions

View file

@ -2768,7 +2768,7 @@ int CmdHF14AMfCLoad(const char *Cmd) {
// 64 or 256blocks.
if (datalen != 1024 && datalen != 4096) {
PrintAndLogEx(WARNING, "File content error. ");
free(data);
free(data);
return 2;
}