FIX: Coverity, Resource leak, CID #121361, filehandle f needs to be free

This commit is contained in:
iceman1001 2016-01-12 23:38:47 +01:00
parent e683ecb6a5
commit 3906036e11

View file

@ -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;