diff options
author | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-05-27 00:06:14 +0000 |
---|---|---|
committer | stefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1> | 2014-05-27 00:06:14 +0000 |
commit | 5855696dd94d1787861fa2273dcc44f44d96743a (patch) | |
tree | ca9b3c08626c7c4a3dacefab3824b40bcf6f896f /chipdrivers.h | |
parent | 034f719ab77b222f130f564f63b948982ce95dd0 (diff) | |
download | flashrom-5855696dd94d1787861fa2273dcc44f44d96743a.tar.gz |
Fix various tiny problems in verify_range().
First of all, fix CID1130010: Resource leak as reported by Stefan Reinauer.
Alternatively to Stefan's approach, just move the malloc() out of the scope.
Additionally, get rid of an unnecessary exit(1) and correctly return -1 in all
error cases as documented.
Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1800 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'chipdrivers.h')
0 files changed, 0 insertions, 0 deletions