Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
a5b9d30d
Commit
a5b9d30d
authored
Jul 31, 2019
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test-tcp: Only free passive socket after child
The child now calls into the parent..
parent
6b16df21
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
tests/test-tcp.c
tests/test-tcp.c
+1
-2
No files found.
tests/test-tcp.c
View file @
a5b9d30d
...
@@ -53,8 +53,6 @@ on_server_connection_available (gpointer user_data)
...
@@ -53,8 +53,6 @@ on_server_connection_available (gpointer user_data)
{
{
server
=
nice_tcp_passive_socket_accept
(
passive_sock
);
server
=
nice_tcp_passive_socket_accept
(
passive_sock
);
g_assert
(
server
);
g_assert
(
server
);
nice_socket_free
(
passive_sock
);
passive_sock
=
NULL
;
g_main_loop_quit
(
mainloop
);
g_main_loop_quit
(
mainloop
);
...
@@ -151,6 +149,7 @@ main (void)
...
@@ -151,6 +149,7 @@ main (void)
nice_socket_free
(
client
);
nice_socket_free
(
client
);
nice_socket_free
(
server
);
nice_socket_free
(
server
);
nice_socket_free
(
passive_sock
);
g_source_unref
(
srv_listen_source
);
g_source_unref
(
srv_listen_source
);
g_source_unref
(
srv_input_source
);
g_source_unref
(
srv_input_source
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment