X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/9c7c222c035156c33766daec6c635113414eab41..6ff6ade2f5f24ffb52a9f90238ee7b8c77edc89c:/client/cmdlfhitag.c diff --git a/client/cmdlfhitag.c b/client/cmdlfhitag.c index 6d1cb87d..74578eea 100644 --- a/client/cmdlfhitag.c +++ b/client/cmdlfhitag.c @@ -159,6 +159,7 @@ int CmdLFHitagSim(const char *Cmd) { tag_mem_supplied = true; if (fread(c.d.asBytes,48,1,pf) == 0) { PrintAndLog("Error: File reading error"); + fclose(pf); return 1; } fclose(pf);