From: iceman1001 Date: Tue, 12 Jan 2016 22:38:47 +0000 (+0100) Subject: FIX: Coverity, Resource leak, CID #121361, filehandle f needs to be free X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/3906036e11b6cfba19c043ae29ac1dcb3ea88414?hp=e683ecb6a56d5aaea9b3d6428dc8c8acdb64bc9f FIX: Coverity, Resource leak, CID #121361, filehandle f needs to be free --- diff --git a/client/cmdhfmf.c b/client/cmdhfmf.c index e5592efa..83f26302 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;