mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fpga_compress: fix mem leak
This commit is contained in:
parent
01c35a9bfb
commit
042342dc8f
1 changed files with 5 additions and 3 deletions
|
@ -396,11 +396,13 @@ int main(int argc, char **argv) {
|
||||||
return (EXIT_FAILURE);
|
return (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
if (generate_version_file) {
|
if (generate_version_file) {
|
||||||
if (generate_fpga_version_info(infiles, infile_names, num_input_files, outfile)) {
|
int ret = generate_fpga_version_info(infiles, infile_names, num_input_files, outfile);
|
||||||
free(infile_names);
|
free(infile_names);
|
||||||
free(infiles);
|
free(infiles);
|
||||||
|
if (ret) {
|
||||||
return (EXIT_FAILURE);
|
return (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
return (ret);
|
||||||
} else {
|
} else {
|
||||||
int ret = zlib_compress(infiles, num_input_files, outfile);
|
int ret = zlib_compress(infiles, num_input_files, outfile);
|
||||||
free(infile_names);
|
free(infile_names);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue