diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-11-02 10:44:12 +0100 |
---|---|---|
committer | Daniel P. Berrangé <berrange@redhat.com> | 2020-11-03 13:09:20 +0000 |
commit | 9ce22da0d834f0c9f57bd36f5d0d10e5e2f4992c (patch) | |
tree | 8481c16cc44fc62232042c74d9899f2f89a67f1e /tests/test-util-sockets.c | |
parent | c7a7a877b716cf14848f1fd5c754d293e2f8d852 (diff) |
test-util-sockets: Plug file descriptor leak
Fixes: 4d3a329af59ef8acd076f99f05e82531d8129b34
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'tests/test-util-sockets.c')
-rw-r--r-- | tests/test-util-sockets.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test-util-sockets.c b/tests/test-util-sockets.c index f6336e0f91..15da867b8f 100644 --- a/tests/test-util-sockets.c +++ b/tests/test-util-sockets.c @@ -252,6 +252,7 @@ static gpointer unix_server_thread_func(gpointer user_data) connfd = accept(fd, (struct sockaddr *)&un, &len); g_assert_cmpint(connfd, !=, -1); + close(connfd); close(fd); |