Skip to content

Commit

Permalink
UBIFS: fix a memory leak on error path.
Browse files Browse the repository at this point in the history
In 'mount_ubifs()', in case of 'ubifs_leb_unmap()' falure,
free allocated resources.

Signed-off-by: Matthieu CASTET <matthieu.castet@parrot.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Matthieu CASTET authored and Artem Bityutskiy committed Aug 3, 2010
1 parent 6fb4374 commit c18de72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ubifs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c18de72

Please sign in to comment.