UBIFS: fix a memory leak on error path.

In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure,
free allocated resources.

Signed-off-by: Matthieu CASTET <[email protected]>
Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
Matthieu CASTET 2010-08-02 11:36:06 +02:00 • committed by Artem Bityutskiy
commit c18de72fb3

View file

@ -1320,7 +1320,7 @@ static int mount_ubifs(struct ubifs_info *c)
*/
err = ubifs_leb_unmap(c, c->gc_lnum);
if (err)
return err;
goto out_orphans;
}
err = dbg_check_lprops(c);