diff --git a/gio/gnetworkservice.c b/gio/gnetworkservice.c index d75981963..57c8e8f3b 100644 --- a/gio/gnetworkservice.c +++ b/gio/gnetworkservice.c @@ -480,6 +480,8 @@ g_network_service_address_enumerator_next (GSocketAddressEnumerator *enumerator { if (srv_enum->error == NULL) srv_enum->error = error; + else + g_error_free (error); continue; }