Skip to content
  • Philip Withnall's avatar
    tests: Fix a minor leak in the socket test · c7ace595
    Philip Withnall authored
    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_sui...
    c7ace595