projects
/
proxmark3-svn
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a429510
)
FIX: Coverity scan, remove a resource leak, wrong varible type.
author
iceman1001
<iceman@iuse.se>
Tue, 19 Jan 2016 15:29:49 +0000
(16:29 +0100)
committer
iceman1001
<iceman@iuse.se>
Tue, 19 Jan 2016 15:29:49 +0000
(16:29 +0100)
client/fpga_compress.c
patch
|
blob
|
blame
|
history
diff --git
a/client/fpga_compress.c
b/client/fpga_compress.c
index 865681cd8db4c68799fb8aeafc5461490b1c4a51..9bafead9a4b6dec38549ca1ad0a787ce6eef63ed 100644
(file)
--- a/
client/fpga_compress.c
+++ b/
client/fpga_compress.c
@@
-91,6
+91,7
@@
int zlib_compress(FILE *infile[], uint8_t num_infiles, FILE *outfile)
for(uint16_t j = 0; j < num_infiles; j++) {
fclose(infile[j]);
}
for(uint16_t j = 0; j < num_infiles; 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;
uint16_t i = 0;
do {
compressed_fpga_stream.next_in = inbuf;
uint16_t i = 0;
do {
-
uint8_
t c = fgetc(infile);
+
in
t c = fgetc(infile);
if (!feof(infile)) {
inbuf[i++] = c;
compressed_fpga_stream.avail_in++;
if (!feof(infile)) {
inbuf[i++] = c;
compressed_fpga_stream.avail_in++;
Impressum
,
Datenschutz