diff options
author | Mikhail Ilin | 2022-11-23 14:31:03 +0300 |
---|---|---|
committer | Tom Rini | 2022-12-08 09:29:02 -0500 |
commit | 4b95e8407eba6e6fd73341695de15dec19e723a8 (patch) | |
tree | af689d28aa1eacaa60ac8d0d9748a2f37f7dd981 /cmd/erofs.c | |
parent | 17f8a7487689ad727aadc00c14cd3315cd880e4a (diff) |
tools: fdtgrep: Fix handle leak
The handle "fd" was created in fdtgrep.c:708 by calling the
"open" function and is lost in fdtgrep.c:716 and fdtgrep.c:723.
Close file descriptor 'fd' before exiting with an error from function
utilfdt_read_err_len(const char *filename, char **buffp, off_t *len).
Fixes: 1043d0a0296a ("fdt: Add fdtgrep tool")
Signed-off-by: Mikhail Ilin <ilin.mikhail.ol@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/erofs.c')
0 files changed, 0 insertions, 0 deletions