diff --git a/client/cmdhficlass.c b/client/cmdhficlass.c index 047bf1375..8235ed223 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