mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07: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) {
|
if (!p) {
|
||||||
PrintAndLog("Cannot allocate memory for defKeys");
|
PrintAndLog("Cannot allocate memory for defKeys");
|
||||||
free(keyBlock);
|
free(keyBlock);
|
||||||
|
free(f);
|
||||||
return 2;
|
return 2;
|
||||||
}
|
}
|
||||||
keyBlock = p;
|
keyBlock = p;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue