gio/tests/socket: fix minor memleak
authorTim-Philipp Müller <tim@centricular.com>
Fri, 13 Jun 2014 18:23:13 +0000 (19:23 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 13 Jun 2014 18:32:09 +0000 (19:32 +0100)
gio/tests/socket.c

index 5cc8ee6..3901cff 100644 (file)
@@ -872,6 +872,7 @@ test_reuse_tcp (void)
   g_assert_no_error (error);
   g_socket_bind (sock2, addr, TRUE, &error);
   g_assert_error (error, G_IO_ERROR, G_IO_ERROR_ADDRESS_IN_USE);
+  g_clear_error (&error);
   g_object_unref (addr);
 
   g_object_unref (sock1);