mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
gio: Fix a GError memory leak in GNetworkService
Spotted by Coverity (CID: #1325405).
This commit is contained in:
parent
27660b178e
commit
db972a73ce
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user