From 7c7dfa7d392fde020cebd2380eb3961f62f6a794 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Sat, 8 Jan 2022 15:05:03 +0100 Subject: [PATCH] cppcheck fix --- tools/fpga_compress/fpga_compress.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/fpga_compress/fpga_compress.c b/tools/fpga_compress/fpga_compress.c index 1726117fd..04e0dbc9f 100644 --- a/tools/fpga_compress/fpga_compress.c +++ b/tools/fpga_compress/fpga_compress.c @@ -250,9 +250,8 @@ static int zlib_decompress(FILE *infile, FILE *outfiles[], uint8_t num_outfiles, fclose(outfiles[j]); } } - if (outbufall) { - free(outbufall); - } + + free(outbufall); return (EXIT_SUCCESS); }