Skip to content
Snippets Groups Projects
Commit b644006e authored by Ilya Yanok's avatar Ilya Yanok Committed by Wolfgang Denk
Browse files

jffs2: clean the cache in case of malloc fails in build_lists


We should call jffs2_clean_cache() if we return from jffs2_build_lists()
with an error to prevent usage of incomplete lists. Also we should
free() a local buffer to prevent memory leaks.

Signed-off-by: default avatarIlya Yanok <yanok@emcraft.com>
parent 7ff66bb0
No related branches found
No related tags found
Loading
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