aboutsummaryrefslogtreecommitdiffstats
path: root/tools/wrt350nv2-builder/src
diff options
context:
space:
mode:
authorAndrea Dalla Costa <andrea@dallacosta.me>2020-01-12 00:21:10 +0100
committerJo-Philipp Wich <jo@mein.io>2020-01-14 17:48:50 +0100
commit3c77e4ae4d97ec14daeabfab12ec8b451184d0d6 (patch)
treec1f0a7d6af4c0026557ea4004b140730e974cc01 /tools/wrt350nv2-builder/src
parent8057970d2a32b8f5c9804855b138eceeb757b98e (diff)
downloadupstream-3c77e4ae4d97ec14daeabfab12ec8b451184d0d6.tar.gz
upstream-3c77e4ae4d97ec14daeabfab12ec8b451184d0d6.tar.bz2
upstream-3c77e4ae4d97ec14daeabfab12ec8b451184d0d6.zip
wrt350nv2-builder: Fix memory leak
Add missing call to `free` for variable `buffer` in function `create_bin_file`. Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
Diffstat (limited to 'tools/wrt350nv2-builder/src')
-rw-r--r--tools/wrt350nv2-builder/src/wrt350nv2-builder.c1
1 files changed, 1 insertions, 0 deletions
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;
}