wrt350nv2-builder: Fix memory leak
authorAndrea Dalla Costa <andrea@dallacosta.me>
Sat, 11 Jan 2020 23:21:10 +0000 (00:21 +0100)
committerJo-Philipp Wich <jo@mein.io>
Tue, 14 Jan 2020 16:48:50 +0000 (17:48 +0100)
Add missing call to `free` for variable `buffer` in function
`create_bin_file`.

Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
tools/wrt350nv2-builder/src/wrt350nv2-builder.c

index 3ebb40ed5115b64765a0d3433f4b5ee0cf59eed5..36f05878c4801981df71610ca2dea2943e883ef6 100644 (file)
@@ -556,6 +556,7 @@ int create_bin_file(char *bin_filename) {
                }
        }
 
+       free(buffer);
        return exitcode;
 }