mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
loadFile: fix double free
This commit is contained in:
parent
9764381aa4
commit
abddff513e
3 changed files with 6 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue