summaryrefslogtreecommitdiffstats
path: root/dediprog.c
diff options
context:
space:
mode:
authorCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-11-05 14:51:59 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-11-05 14:51:59 +0000
commit12d6d821416436cf3ede3dbabcd688887ef7ba76 (patch)
tree68176724cdd3d607fa489ca9b2ce590cd8f64584 /dediprog.c
parent6e2ea32dc217329f4321dea0cda1132203e96f04 (diff)
downloadast2050-flashrom-12d6d821416436cf3ede3dbabcd688887ef7ba76.zip
ast2050-flashrom-12d6d821416436cf3ede3dbabcd688887ef7ba76.tar.gz
Fix two memory leaks in doit() and refine get_next_write()
Avoid two memory leaks in doit() which were unproblematic for flashrom because flashrom terminates after finishing doit(). Rename oldcontents to curconents in erase_and_write_block_helper(). Unify the code for all granularities in get_next_write(). Return write length from get_next_write() instead of filling it as referenced parameter. Thanks to Michael Karcher for pointing out the first two issues. Thanks to David Hendricks for pointing out the third issue and suggesting a way to unify that code. Corresponding to flashrom svn r1225. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de>
Diffstat (limited to 'dediprog.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud