mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-27 17:52:58 +02:00
gio/tests/socket: fix minor memleak
This commit is contained in:
@@ -872,6 +872,7 @@ test_reuse_tcp (void)
|
|||||||
g_assert_no_error (error);
|
g_assert_no_error (error);
|
||||||
g_socket_bind (sock2, addr, TRUE, &error);
|
g_socket_bind (sock2, addr, TRUE, &error);
|
||||||
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_ADDRESS_IN_USE);
|
g_assert_error (error, G_IO_ERROR, G_IO_ERROR_ADDRESS_IN_USE);
|
||||||
|
g_clear_error (&error);
|
||||||
g_object_unref (addr);
|
g_object_unref (addr);
|
||||||
|
|
||||||
g_object_unref (sock1);
|
g_object_unref (sock1);
|
||||||
|
Reference in New Issue
Block a user