projects
/
platform
/
upstream
/
libnice.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b16df2
)
test-tcp: Only free passive socket after child
author
Olivier Crête
<olivier.crete@collabora.com>
Wed, 31 Jul 2019 18:51:16 +0000
(14:51 -0400)
committer
Olivier Crête
<olivier.crete@collabora.com>
Wed, 31 Jul 2019 18:51:16 +0000
(14:51 -0400)
The child now calls into the parent..
tests/test-tcp.c
patch
|
blob
|
history
diff --git
a/tests/test-tcp.c
b/tests/test-tcp.c
index
6e3aa52
..
85a638f
100644
(file)
--- 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);