commit | e3edf16852ca90d26651d4cbfd45bf28e8496b26 | [log] [tgz] |
---|---|---|
author | Mario Six <mario.six@gdsys.cc> | Mon Feb 13 10:11:55 2017 +0100 |
committer | Stefan Roese <sr@denx.de> | Fri Feb 17 10:15:21 2017 +0100 |
tree | 83434198dbe2e6fd653c5f1e432669091ffa7561 | |
parent | 392919cff2e48ad09a3c74e665aeecd2b42fa3c5 [diff] |
tools: kwbimage: Fix unchecked return value and fd leak The return value of fstat was not checked in kwbimage, and in the case of an error, the already open file was not closed. Fix both errors. Reported-by: Coverity (CID: 155971) Reported-by: Coverity (CID: 155969) Signed-off-by: Mario Six <mario.six@gdsys.cc> Signed-off-by: Stefan Roese <sr@denx.de>