commit | b98d58ef5047e686c086144968b33b0363369ddd | [log] [tgz] |
---|---|---|
author | Wolfgang Denk <wd@denx.de> | Thu Mar 11 23:35:43 2010 +0100 |
committer | Wolfgang Denk <wd@denx.de> | Thu Mar 11 23:35:43 2010 +0100 |
tree | 8fe834f4fc0d1d3af866b3ac2c4039b32c602c20 | |
parent | b5faaf77d5503d0c2722db0a6a929f98e4c3afc6 [diff] |
Fix memory leak in mmc_read() There is be a path through mmc_read in drivers/mmc/mmc.c where malloc'd memory is not freed before exiting mmc_read: it occurs if mmc_set_blocklen() returns a non-zero value. Reported-by: Quentin Armitage <Quentin@Armitage.org.uk> Signed-off-by: Wolfgang Denk <wd@denx.de>