From: Andrea Dalla Costa Date: Sat, 11 Jan 2020 23:21:10 +0000 (+0100) Subject: wrt350nv2-builder: Fix memory leak X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=3c77e4ae4d97ec14daeabfab12ec8b451184d0d6;p=openwrt%2Fstaging%2Fdangole.git wrt350nv2-builder: Fix memory leak Add missing call to `free` for variable `buffer` in function `create_bin_file`. Signed-off-by: Andrea Dalla Costa --- diff --git a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c index 3ebb40ed51..36f05878c4 100644 --- a/tools/wrt350nv2-builder/src/wrt350nv2-builder.c +++ b/tools/wrt350nv2-builder/src/wrt350nv2-builder.c @@ -556,6 +556,7 @@ int create_bin_file(char *bin_filename) { } } + free(buffer); return exitcode; }