test/test_syscalls.c: fix potential fd leakage problems
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Thu, 5 Nov 2020 10:26:18 +0000 (18:26 +0800)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 6 Nov 2020 19:26:03 +0000 (19:26 +0000)
commit71f0d7c366ee2ac2d6158c7c7ea6c3c2240ebc65
tree59a29acf25d4146a51351964201b10d2bd31dc3b
parent8b4c5d90ee3137472fd63eea1b46cf19da874abd
test/test_syscalls.c: fix potential fd leakage problems

In test_syscalls.c, several funcs have potential fd leakage
problems. This patch will fix them.

Signed-off-by: Zhiqiang Liu <liuzhiqiang26@huawei.com>
Signed-off-by: Haotian Li <lihaotian9@huawei.com>
test/test_syscalls.c