FIX: Coverity, CID #121346, resouce leak, close filehandle.
This commit is contained in:
1 parent
f7c30d806c
commit
628d1cb085
1 file changed
+1
@@ -1048,6 +1048,7 @@ int CmdHFiClassCloneTag(const char *Cmd) {
|
|||||||
|
|
||||||
if (startblock<5) {
|
if (startblock<5) {
|
||||||
PrintAndLog("You cannot write key blocks this way. yet... make your start block > 4");
|
PrintAndLog("You cannot write key blocks this way. yet... make your start block > 4");
|
||||||
|
fclose(f);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// now read data from the file from block 6 --- 19
|
// now read data from the file from block 6 --- 19
|
||||||
|
|||||||
Reference in new issue
Block a user