]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
FIX: Coverity, CID #121346, resouce leak, close filehandle.
authoriceman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:06:53 +0000 (23:06 +0100)
committericeman1001 <iceman@iuse.se>
Tue, 12 Jan 2016 22:06:53 +0000 (23:06 +0100)
client/cmdhficlass.c

index 047bf1375b46df624e96a6fb4d752095b144d9d4..8235ed223e21156b9c826aac387e13840e2330f2 100644 (file)
@@ -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");
 
        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
                return 0;
        }
        // now read data from the file from block 6 --- 19
Impressum, Datenschutz