]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_db: free field list when failing out of fuzz
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 18 Aug 2017 17:00:01 +0000 (12:00 -0500)
committerEric Sandeen <sandeen@redhat.com>
Fri, 18 Aug 2017 17:00:01 +0000 (12:00 -0500)
commit6a07c22c2486ebe6808f45cbe6aef3d0dfbce2cf
tree30f9ccca0a158d2eba1f217c8f9d97c15d642a46
parenta749e257f30ea020f42912e9afd63aedfeb26dc5
xfs_db: free field list when failing out of fuzz

Fix a missed opportunity to free the field list when we fail out of the
fuzz command by refactoring the error clauses to use a common cleanup
clause.

Fixes-coverity-id: 1416141
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
db/fuzz.c