]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs_db: fix leak in flist_find_ftyp()
authorAndrey Albershteyn <aalbersh@redhat.com>
Tue, 23 Apr 2024 12:36:14 +0000 (14:36 +0200)
committerCarlos Maiolino <cem@kernel.org>
Tue, 23 Apr 2024 13:02:58 +0000 (15:02 +0200)
commit21dc682a3842eb7e4c79f7e511d840e708d7e757
tree27443a612cb8a747631eda0ba7cf1fb8be34be52
parent90ee2c3a94511da87929989a06199fd537c94db4
xfs_db: fix leak in flist_find_ftyp()

When count is zero fl reference is lost. Fix it by freeing the list.

Fixes: a0d79cb37a36 ("xfs_db: make flist_find_ftyp() to check for field existance on disk")
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrey Albershteyn <aalbersh@redhat.com>
db/flist.c