Skip to content
Snippets Groups Projects
Commit 3c2dff54 authored by Tom Rini's avatar Tom Rini
Browse files

tools/fit_image.c: Update some return code paths


Coverity has found some problems with the return paths in parts of this
code.  We have a case where we were going to the wrong part of the
unwind (open() failed so we cannot close the fd), a case where we were
only free()ing our buf on the error path and finally a case where we did
not munmap in the failure path.

Reported-by: Coverity (CID: 138492, 138495, 143064)
Signed-off-by: default avatarTom Rini <trini@konsulko.com>
parent 146dda39
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment