mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-16 04:09:10 +08:00
FIX: Coverity, Resource leak, CID #121361, filehandle f needs to be free
This commit is contained in:
parent
e683ecb6a5
commit
3906036e11
1 changed files with 1 additions and 0 deletions
|
@ -1040,6 +1040,7 @@ int CmdHF14AMfChk(const char *Cmd)
|
|||
if (!p) {
|
||||
PrintAndLog("Cannot allocate memory for defKeys");
|
||||
free(keyBlock);
|
||||
free(f);
|
||||
return 2;
|
||||
}
|
||||
keyBlock = p;
|
||||
|
|
Loading…
Reference in a new issue