summaryrefslogtreecommitdiffstats
path: root/spi25_statusreg.c
diff options
context:
space:
mode:
authorStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-27 00:06:14 +0000
committerStefan Tauner <stefan.tauner@alumni.tuwien.ac.at>2014-05-27 00:06:14 +0000
commitdf64a42d6d6232af9aac20c7d2aedb4d527eaeef (patch)
treeca9b3c08626c7c4a3dacefab3824b40bcf6f896f /spi25_statusreg.c
parent96658be4073aaa55101b17e95c7b704a2cc7c83a (diff)
downloadast2050-flashrom-df64a42d6d6232af9aac20c7d2aedb4d527eaeef.zip
ast2050-flashrom-df64a42d6d6232af9aac20c7d2aedb4d527eaeef.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. 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>
Diffstat (limited to 'spi25_statusreg.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud