ioctl_client.c: fix potential fd leakage problem
authorZhiqiang Liu <liuzhiqiang26@huawei.com>
Thu, 5 Nov 2020 10:00:32 +0000 (18:00 +0800)
committerNikolaus Rath <Nikolaus@rath.org>
Fri, 6 Nov 2020 19:26:03 +0000 (19:26 +0000)
commit2a87b64af7cdff331f62cff37d3b8528299d1708
treea900937a95f5c819c55023e85ae42af1fc645deb
parent5670dde86ce311bfc68b0398cda545b3230787e8
ioctl_client.c: fix potential fd leakage problem

In ioctl_client.c, fd is not closed before return, thus
it will cause fd leakage problem.

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