mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
fix coverity CID 349306 - resource leak
This commit is contained in:
parent
861e06d8af
commit
70709ca0ed
1 changed files with 6 additions and 0 deletions
|
@ -179,6 +179,9 @@ static int zlib_decompress(FILE *infile, FILE *outfiles[], uint8_t num_outfiles,
|
|||
fclose(outfiles[j]);
|
||||
}
|
||||
}
|
||||
if (outbufall) {
|
||||
free(outbufall);
|
||||
}
|
||||
free(inbuf);
|
||||
return (EXIT_FAILURE);
|
||||
}
|
||||
|
@ -247,6 +250,9 @@ static int zlib_decompress(FILE *infile, FILE *outfiles[], uint8_t num_outfiles,
|
|||
fclose(outfiles[j]);
|
||||
}
|
||||
}
|
||||
if (outbufall) {
|
||||
free(outbufall);
|
||||
}
|
||||
return (EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue