From 3c77e4ae4d97ec14daeabfab12ec8b451184d0d6 Mon Sep 17 00:00:00 2001 From: Andrea Dalla Costa Date: Sun, 12 Jan 2020 00:21:10 +0100 Subject: [PATCH] wrt350nv2-builder: Fix memory leak Add missing call to `free` for variable `buffer` in function `create_bin_file`. Signed-off-by: Andrea Dalla Costa --- tools/wrt350nv2-builder/src/wrt350nv2-builder.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.25.1