]> git.ipfire.org Git - thirdparty/util-linux.git/commit
tests: (lsfd) fix file descriptor leaks reported by coverity
authorMasatake YAMATO <yamato@redhat.com>
Mon, 29 Nov 2021 14:04:04 +0000 (23:04 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 29 Nov 2021 14:14:58 +0000 (23:14 +0900)
commit3ebd593974780fa8be234e9716b15ddfa8db094b
treec8bb791405cfc8a1ada0cbf3cf71c128221c7cd3
parent399b78ea30a915e69f7b4ab6ad711d5f1ca5cbdc
tests: (lsfd) fix file descriptor leaks reported by coverity

The oldfd argument of dup2 is not closed automatically.
It must be closed explicitly.

Close #1517.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
tests/helpers/test_mkfds.c