xfs: fix a memory leak
kmemleak reported that we don't free the parent pointer names here if we
found corruption.
Fixes: 0d29a20fbd
("xfs: scrub parent pointers")
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
This commit is contained in:
parent
8400291e28
commit
80d3d33cdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user