diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2019-07-31 14:51:16 -0400 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2019-07-31 14:51:16 -0400 |
commit | a5b9d30d11d637977cd28aa5a8872b6431b83eca (patch) | |
tree | 3ed4e44648d9a9aab701cb9d8a4a7b5104aede56 | |
parent | 6b16df212cd60a90f69cbb285e6e5c2a2753a1ff (diff) | |
download | libnice-a5b9d30d11d637977cd28aa5a8872b6431b83eca.tar.gz |
test-tcp: Only free passive socket after child
The child now calls into the parent..
-rw-r--r-- | tests/test-tcp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/test-tcp.c b/tests/test-tcp.c index 6e3aa52..85a638f 100644 --- a/tests/test-tcp.c +++ b/tests/test-tcp.c @@ -53,8 +53,6 @@ on_server_connection_available (gpointer user_data) { server = nice_tcp_passive_socket_accept (passive_sock); g_assert (server); - nice_socket_free (passive_sock); - passive_sock = NULL; g_main_loop_quit (mainloop); @@ -151,6 +149,7 @@ main (void) nice_socket_free (client); nice_socket_free (server); + nice_socket_free (passive_sock); g_source_unref (srv_listen_source); g_source_unref (srv_input_source); |