X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/7f975d7e1794cc35607f41dd0e718bf2f4e99314..9974991e4baa2be529f311e0bec7e38e6212f3e7:/client/fpga_compress.c diff --git a/client/fpga_compress.c b/client/fpga_compress.c index 865681cd..9bafead9 100644 --- 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]); } + free(fpga_config); 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 { - uint8_t c = fgetc(infile); + int c = fgetc(infile); if (!feof(infile)) { inbuf[i++] = c; compressed_fpga_stream.avail_in++;