Commit 80d3d33c authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Chandan Babu R
Browse files

xfs: fix a memory leak



kmemleak reported that we don't free the parent pointer names here if we
found corruption.

Fixes: 0d29a20f ("xfs: scrub parent pointers")
Signed-off-by: default avatarDarrick J. Wong <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarChandan Babu R <chandanbabu@kernel.org>
parent 8400291e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -799,7 +799,7 @@ xchk_parent_pptr(
	}

	if (pp->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT)
		goto out_pp;
		goto out_names;

	/*
	 * Complain if the number of parent pointers doesn't match the link