Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);