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

Commit 519ccb81 authored by tinguely@sgi.com's avatar tinguely@sgi.com Committed by Ben Myers
Browse files

xfs: fix memory leak in xlog_recover_add_to_trans



Free the memory in error path of xlog_recover_add_to_trans().
Normally this memory is freed in recovery pass2, but is leaked
in the error path.

Signed-off-by: default avatarMark Tinguely <tinguely@sgi.com>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
Signed-off-by: default avatarBen Myers <bpm@sgi.com>
parent 367993e7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1585,6 +1585,7 @@ xlog_recover_add_to_trans(
		"bad number of regions (%d) in inode log format",
				  in_f->ilf_size);
			ASSERT(0);
			free(ptr);
			return XFS_ERROR(EIO);
		}