mirror of https://github.com/hak5/openwrt.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 <andrea@dallacosta.me>master
parent
8057970d2a
commit
3c77e4ae4d
|
@ -556,6 +556,7 @@ int create_bin_file(char *bin_filename) {
|
|||
}
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
return exitcode;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue