diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-07-23 22:11:55 -0700 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-07-29 09:25:01 +0530 |
commit | 80d3d33cdf4b0494b465087eb34d2e29d86e290e (patch) | |
tree | c5da126b3e1dd24d6240882dc0d94704edc4a918 /fs/xfs | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b (diff) |
xfs: fix a memory leak
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 <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/scrub/parent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/scrub/parent.c b/fs/xfs/scrub/parent.c index 733c410a2279..91e7b51ce068 100644 --- a/fs/xfs/scrub/parent.c +++ b/fs/xfs/scrub/parent.c @@ -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 |