xfs: fix a memory leak
PATCH 1/1 xfs: fix a memory leak
From: Darrick J. Wong <[email protected]>
kmemleak reported that we don't free the parent pointer names here if we found corruption.
Fixes 0d29a20fbdba8 ("xfs: scrub parent pointers")
Signed-off-by Darrick J. Wong <[email protected]>
--- fs/xfs/scrub/parent.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/xfs/scrub/parent.c +1 -1
@@ -821,7 +821,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
Looks good:
Reviewed-by Christoph Hellwig <[email protected]>