]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/cmdhficlass.c
FIX: Coverity, CID #121346, resouce leak, close filehandle.
[proxmark3-svn] / 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");
+               fclose(f);      
                return 0;
        }
        // now read data from the file from block 6 --- 19
Impressum, Datenschutz