commit | df64a42d6d6232af9aac20c7d2aedb4d527eaeef | [log] [tgz] |
---|---|---|
author | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Tue May 27 00:06:14 2014 +0000 |
committer | Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> | Tue May 27 00:06:14 2014 +0000 |
tree | ca9b3c08626c7c4a3dacefab3824b40bcf6f896f | |
parent | 96658be4073aaa55101b17e95c7b704a2cc7c83a [diff] |
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. Corresponding to flashrom svn r1800. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>