summaryrefslogtreecommitdiffstats
path: root/flashchips.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
commit5b8ecda269eebfc5a572466d2ca1ccb8163898e5 (patch)
treeca9b3c08626c7c4a3dacefab3824b40bcf6f896f /flashchips.c
parent85c77bffc167fb32b6cff0b7ddfbb257fdb632c6 (diff)
downloadflashrom-5b8ecda269eebfc5a572466d2ca1ccb8163898e5.zip
flashrom-5b8ecda269eebfc5a572466d2ca1ccb8163898e5.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 'flashchips.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud