From: iceman1001 Date: Tue, 12 Jan 2016 22:06:53 +0000 (+0100) Subject: FIX: Coverity, CID #121346, resouce leak, close filehandle. X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/628d1cb085d2f3eecf75e845fbee3d054e9b4cb5 FIX: Coverity, CID #121346, resouce leak, close filehandle. --- diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 047bf137..8235ed22 100644 --- a/client/cmdhficlass.c +++ b/client/cmdhficlass.c @@ -1048,6 +1048,7 @@ int CmdHFiClassCloneTag(const char *Cmd) { if (startblock<5) { PrintAndLog("You cannot write key blocks this way. yet... make your start block > 4"); + fclose(f); return 0; } // now read data from the file from block 6 --- 19