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

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
...@@ -799,7 +799,7 @@ xchk_parent_pptr( ...@@ -799,7 +799,7 @@ xchk_parent_pptr(
} }
if (pp->sc->sm->sm_flags & XFS_SCRUB_OFLAG_CORRUPT) 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 * Complain if the number of parent pointers doesn't match the link
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment