gio: Fix a GError memory leak in GNetworkService

Spotted by Coverity (CID: #1325405).
This commit is contained in:
Philip Withnall 2016-03-15 18:08:29 +00:00
parent 27660b178e
commit db972a73ce

View File

@ -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;
}