Skip to content
Snippets Groups Projects
Commit 8c4444ff authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

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: default avatarQuentin Armitage <Quentin@Armitage.org.uk>
Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
parent 6258b04e
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment