diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index e5592efa4..83f263025 100644 --- a/client/cmdhfmf.c +++ b/client/cmdhfmf.c @@ -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;