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

Commit 60e2ec48 authored by Tao Ma's avatar Tao Ma Committed by Joel Becker
Browse files

ocfs2: release the buffer head in ocfs2_do_truncate.



In ocfs2_do_truncate, we forget to release last_eb_bh which
will cause memleak. So call brelse in the end.

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
Signed-off-by: default avatarJoel Becker <joel.becker@oracle.com>
parent ada50827
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6851,7 +6851,7 @@ static int ocfs2_do_truncate(struct ocfs2_super *osb,
	}
	status = 0;
bail:

	brelse(last_eb_bh);
	mlog_exit(status);
	return status;
}