mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
wrong fcloses
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user