mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-03-14 11:33:48 +00:00
Fix resource leaks detected by cppcheck
[examples/pn53x-tamashell.c:94]: (error) Resource leak: input [utils/nfc-mfultralight.c:264]: (error) Resource leak: pfDump
This commit is contained in:
@@ -261,6 +261,7 @@ main(int argc, const char *argv[])
|
||||
}
|
||||
if (fwrite(&mtDump, 1, sizeof(mtDump), pfDump) != sizeof(mtDump)) {
|
||||
printf("Could not write to file: %s\n", argv[2]);
|
||||
fclose(pfDump);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
fclose(pfDump);
|
||||
|
||||
Reference in New Issue
Block a user