jffs2: fix a memleak in read_direntry()
Need to free the memory allocated for 'fd' if failed to read all of the remainder name. Signed-off-by: NWei Fang <fangwei1@huawei.com> Signed-off-by: NBrian Norris <computersforpeace@gmail.com>
Showing
想要评论请 注册 或 登录