diff options
| author | Andreas Schneider <asn@samba.org> | 2014-04-08 09:34:43 +0200 |
|---|---|---|
| committer | Andreas Schneider <asn@samba.org> | 2014-04-14 15:27:30 +0200 |
| commit | 2fb245848b786cd8a3d776810f1faf27d8819097 (patch) | |
| tree | 3e0d75eab9abd81a5aaa2f728eb9c35d6b5781e5 | |
| parent | d5a37e5661d6dd466cd5dd914300f06406b48f3d (diff) | |
| download | socket_wrapper-2fb245848b786cd8a3d776810f1faf27d8819097.tar.gz socket_wrapper-2fb245848b786cd8a3d776810f1faf27d8819097.tar.xz socket_wrapper-2fb245848b786cd8a3d776810f1faf27d8819097.zip | |
tests: Don't leak file description in test_ioctl.
Found by Coverity.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Simo Sorce <idra@samba.org>
| -rw-r--r-- | tests/test_ioctl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_ioctl.c b/tests/test_ioctl.c index d365641..86734cf 100644 --- a/tests/test_ioctl.c +++ b/tests/test_ioctl.c @@ -85,6 +85,8 @@ static void test_swrap_ioctl_sock(void **state) assert_int_not_equal(grp, -127); #endif + + close(fd); } int main(void) { |
