From 2fb245848b786cd8a3d776810f1faf27d8819097 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 8 Apr 2014 09:34:43 +0200 Subject: tests: Don't leak file description in test_ioctl. Found by Coverity. Signed-off-by: Andreas Schneider Reviewed-by: Jakub Hrozek Reviewed-by: Simo Sorce --- tests/test_ioctl.c | 2 ++ 1 file changed, 2 insertions(+) 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) { -- cgit