Skip to content
Permalink
Browse files

tests: net: socket: register: Close socket after test

The file descriptor was not closed after the test which caused
Coverity to complain about resource leak.

Coverity-CID: 198640
Fixes #16493

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
  • Loading branch information...
jukkar committed May 31, 2019
1 parent 3653e68 commit 1cbda7d4ac5537e339603d155b3aa06242e53da3
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/net/socket/register/src/main.c
@@ -246,6 +246,8 @@ void test_create_sockets(void)
} else {
failed_tests++;
}

close(fd);
}

zassert_equal(ok_tests + failed_tests - failed_family, func_called,

0 comments on commit 1cbda7d

Please sign in to comment.
You can’t perform that action at this time.