]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_spaceman: close open file for error case in openfile()
authorBill O'Donnell <billodo@redhat.com>
Thu, 29 Jun 2017 18:05:58 +0000 (13:05 -0500)
committerEric Sandeen <sandeen@redhat.com>
Thu, 29 Jun 2017 18:05:58 +0000 (13:05 -0500)
commit1cda90906c093d30911c0a20f214d68a1d220cdd
tree56c696ca8d9fa01915b718ece4e48fce0cd97079
parente177680d579619c54bf65adb7963e74e435eeb3b
xfs_spaceman: close open file for error case in openfile()

openfile() fails to close the open file in one error case.
Add close(fd) to correct the condition.

Addresses-Coverity-Id: 1413770

Signed-off-by: Bill O'Donnell <billodo@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
spaceman/file.c