summaryrefslogtreecommitdiff
path: root/spi25_statusreg.c
diff options
context:
space:
mode:
authorstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-27 00:06:14 +0000
committerstefanct <stefanct@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2014-05-27 00:06:14 +0000
commit5855696dd94d1787861fa2273dcc44f44d96743a (patch)
treeca9b3c08626c7c4a3dacefab3824b40bcf6f896f /spi25_statusreg.c
parent034f719ab77b222f130f564f63b948982ce95dd0 (diff)
downloadflashrom-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 'spi25_statusreg.c')
0 files changed, 0 insertions, 0 deletions