mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 02:27:26 -07:00
wrong fcloses
This commit is contained in:
parent
175e804a13
commit
c6f2785463
1 changed files with 1 additions and 2 deletions
|
@ -235,7 +235,7 @@ static int zlib_decompress(FILE *infile, FILE *outfiles[], uint8_t num_outfiles,
|
|||
fseek(infile, 0L, SEEK_SET);
|
||||
return EXIT_SUCCESS;
|
||||
} else {
|
||||
fclose(infile);
|
||||
|
||||
// seeking for trailing zeroes
|
||||
long offset = 0;
|
||||
long outfilesizes[10] = {0};
|
||||
|
@ -474,7 +474,6 @@ int main(int argc, char **argv) {
|
|||
fprintf(stderr, "Error. Cannot open input file %s\n\n", argv[2]);
|
||||
|
||||
// close file handlers
|
||||
fclose(infile);
|
||||
for (uint16_t j = 0; j < num_output_files; j++) {
|
||||
fclose(outfiles[j]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue