summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2016-03-15 18:08:29 +0000
committerPhilip Withnall <philip.withnall@collabora.co.uk>2016-03-15 18:08:29 +0000
commitdb972a73ce016afb9561be2677547efdb649274b (patch)
tree9787545c1aee17ca43a2177fa0a5ecdb122bffa8
parent27660b178e7efd1b54b0d86b2e3ebd993d7781b1 (diff)
downloadglib-db972a73ce016afb9561be2677547efdb649274b.tar.gz
gio: Fix a GError memory leak in GNetworkService
Spotted by Coverity (CID: #1325405).
-rw-r--r--gio/gnetworkservice.c2
1 files changed, 2 insertions, 0 deletions
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;
}