mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
tests: Fix a minor leak in the socket test
As seen in [CI](https://gitlab.gnome.org/GNOME/glib/-/jobs/3436216): ``` ==13767== 144 (40 direct, 104 indirect) bytes in 1 blocks are definitely lost in loss record 528 of 562 ==13767== at 0x4A18B2C: g_type_create_instance (gtype.c:1928) ==13767== by 0x49F92FF: g_object_new_internal (gobject.c:2235) ==13767== by 0x49FA247: g_object_new_valist (gobject.c:2574) ==13767== by 0x49F8D81: g_object_new (gobject.c:2047) ==13767== by 0x4AE2337: g_inet_socket_address_new (ginetsocketaddress.c:387) ==13767== by 0x4B1DB94: g_socket_address_new_from_native (gsocketaddress.c:230) ==13767== by 0x4B16CC2: g_socket_get_local_address (gsocket.c:2071) ==13767== by 0x40E102: test_receive_bytes_from (socket.c:2469) ==13767== by 0x4901E78: test_case_run (gtestutils.c:2974) ==13767== by 0x49022B2: g_test_run_suite_internal (gtestutils.c:3069) ==13767== by 0x490241A: g_test_run_suite_internal (gtestutils.c:3088) ==13767== by 0x4902690: g_test_run_suite (gtestutils.c:3168) ==13767== by 0x4900C8F: g_test_run (gtestutils.c:2275) ==13767== by 0x40EE8A: main (socket.c:2614) ``` Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3220
This commit is contained in:
parent
1964c4f833
commit
c7ace595e8
@ -2537,6 +2537,7 @@ test_receive_bytes_from (void)
|
||||
g_socket_close (data->server, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
g_object_unref (dest_addr);
|
||||
g_object_unref (client);
|
||||
|
||||
ip_test_data_free (data);
|
||||
|
Loading…
Reference in New Issue
Block a user