summaryrefslogtreecommitdiff
path: root/src/nm-exported-object.c
diff options
context:
space:
mode:
authorBeniamino Galvani <bgalvani@redhat.com>2016-12-20 10:13:44 +0100
committerBeniamino Galvani <bgalvani@redhat.com>2016-12-20 11:40:12 +0100
commit9d589046f96b57865c3ee81778a5a641bdad074b (patch)
tree4ae30fece794481701beb2861e84315fef36501f /src/nm-exported-object.c
parente4edef8fe2a5aa8ad068a4344a5c0dd47a59475d (diff)
downloadNetworkManager-9d589046f96b57865c3ee81778a5a641bdad074b.tar.gz
exported-object: fix memory leak
Fixes: 8c4e824997dec18c5dc7a7dedd4053f51fece8f7
Diffstat (limited to 'src/nm-exported-object.c')
-rw-r--r--src/nm-exported-object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nm-exported-object.c b/src/nm-exported-object.c
index ca5f66c566..f3831c8f67 100644
--- a/src/nm-exported-object.c
+++ b/src/nm-exported-object.c
@@ -947,7 +947,8 @@ vtype_found:
g_hash_table_insert (ifdata->pending_notifies,
(gpointer) dbus_property_name,
value_variant);
- }
+ } else
+ g_variant_unref (value_variant);
if (!priv->notify_idle_id)
priv->notify_idle_id = g_idle_add (idle_emit_properties_changed, self);