Tests fix: unix socket: leaked socket of connection to child
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 19 Jul 2021 21:21:17 +0000 (17:21 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 19 Jul 2021 21:23:41 +0000 (17:23 -0400)
commit94dbb7f27f34656ea8a4caa8a3085f69fe7ba5ea
tree1a1b05e67debbcf1916b10ea9beebf4fbccaf7cc
parent70eb2f6fb8b5ee08fce4c970a498c0cdc3e69bf3
Tests fix: unix socket: leaked socket of connection to child

The child_connection socket is only used by the parent in the
credentials passing test. The teardown assumes the reverse which causes
the socket to be leaked.

1458471 Resource leak

The system resource will not be reclaimed and reused, reducing the
future availability of the resource.

In test_creds_passing: Leak of memory or pointers to system
resources (CWE-404)

Reported-by: Coverity Scan
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I2ead9abbfc189ffbdd71a27f6376d0b001cdc2a3
tests/unit/test_unix_socket.c
This page took 0.025201 seconds and 4 git commands to generate.