summaryrefslogtreecommitdiff
path: root/dediprog.c
diff options
context:
space:
mode:
authorhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-11-05 14:51:59 +0000
committerhailfinger <hailfinger@2b7e53f0-3cfb-0310-b3e9-8179ed1497e1>2010-11-05 14:51:59 +0000
commit44712bdd2f7e27cfe7346718e66a26927e909b30 (patch)
tree68176724cdd3d607fa489ca9b2ce590cd8f64584 /dediprog.c
parenta0843a6be370165e47ab36053bb77cdf5dd04ca7 (diff)
downloadflashrom-44712bdd2f7e27cfe7346718e66a26927e909b30.tar.gz
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. Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> Acked-by: Michael Karcher <flashrom@mkarcher.dialup.fu-berlin.de> git-svn-id: https://code.coreboot.org/svn/flashrom/trunk@1225 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'dediprog.c')
0 files changed, 0 insertions, 0 deletions