mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-24 06:55:27 -07:00
FIX: Coverity scan, remove a resource leak, wrong varible type.
This commit is contained in:
parent
a429510647
commit
639a571810
1 changed files with 2 additions and 1 deletions
|
@ -91,6 +91,7 @@ int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
|
||||||
for(uint16_t j = 0; j < num_infiles; j++) {
|
for(uint16_t j = 0; j < num_infiles; j++) {
|
||||||
fclose(infile[j]);
|
fclose(infile[j]);
|
||||||
}
|
}
|
||||||
|
free(fpga_config);
|
||||||
return(EXIT_FAILURE);
|
return(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +196,7 @@ int zlib_decompress(FILE *infile, FILE *outfile)
|
||||||
compressed_fpga_stream.next_in = inbuf;
|
compressed_fpga_stream.next_in = inbuf;
|
||||||
uint16_t i = 0;
|
uint16_t i = 0;
|
||||||
do {
|
do {
|
||||||
uint8_t c = fgetc(infile);
|
int c = fgetc(infile);
|
||||||
if (!feof(infile)) {
|
if (!feof(infile)) {
|
||||||
inbuf[i++] = c;
|
inbuf[i++] = c;
|
||||||
compressed_fpga_stream.avail_in++;
|
compressed_fpga_stream.avail_in++;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue