mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
gio: Fix a GError memory leak in GNetworkService
Spotted by Coverity (CID: #1325405).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user