diff options
author | Andrea Dalla Costa <andrea@dallacosta.me> | 2020-01-11 23:27:17 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2020-01-14 17:48:50 +0100 |
commit | b886d3c8f3d852a5d5bfcb41f439a808d9aa2d58 (patch) | |
tree | f39ac6a3aa7675112bf303f962a0b35e62b8d77e /tools/firmware-utils/src/mksenaofw.c | |
parent | 8e3b3152e5402b574ff66b149cfdc6e42d61db54 (diff) | |
download | upstream-b886d3c8f3d852a5d5bfcb41f439a808d9aa2d58.tar.gz upstream-b886d3c8f3d852a5d5bfcb41f439a808d9aa2d58.tar.bz2 upstream-b886d3c8f3d852a5d5bfcb41f439a808d9aa2d58.zip |
firmware-utils/mkfwimage: fix possible memory and resource leak
Add missing calls to `free` for variable `mem`.
Add missing call to `fclose` for variable `f`.
The same changes were made in both `mkfwimage.c` and `mkfwimage2.c`.
Signed-off-by: Andrea Dalla Costa <andrea@dallacosta.me>
Diffstat (limited to 'tools/firmware-utils/src/mksenaofw.c')
0 files changed, 0 insertions, 0 deletions