Commit c18de72f authored by Matthieu CASTET's avatar Matthieu CASTET Committed by Artem Bityutskiy

UBIFS: fix a memory leak on error path.

In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure,
free allocated resources.
Signed-off-by: default avatarMatthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 6fb4374f
...@@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c) ...@@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c)
*/ */
err = ubifs_leb_unmap(c, c->gc_lnum); err = ubifs_leb_unmap(c, c->gc_lnum);
if (err) if (err)
return err; goto out_orphans;
} }
err = dbg_check_lprops(c); err = dbg_check_lprops(c);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment