projects
/
NetworkManager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cde821
)
dispatcher: fix memleak in construct_device_dhcp4_items()
author
Dan Williams
<dcbw@redhat.com>
Thu, 12 Mar 2015 18:24:32 +0000
(13:24 -0500)
committer
Dan Williams
<dcbw@redhat.com>
Thu, 12 Mar 2015 18:24:32 +0000
(13:24 -0500)
When iterating over a container variant, the children values
must be unrefed when no longer used.
callouts/nm-dispatcher-utils.c
patch
|
blob
|
history
diff --git
a/callouts/nm-dispatcher-utils.c
b/callouts/nm-dispatcher-utils.c
index
82ae353
..
365e7e2
100644
(file)
--- a/
callouts/nm-dispatcher-utils.c
+++ b/
callouts/nm-dispatcher-utils.c
@@
-210,6
+210,7
@@
construct_device_dhcp4_items (GSList *items, GVariant *dhcp4_config)
tmp = g_variant_get_string (val, NULL);
items = g_slist_prepend (items, g_strdup_printf ("DHCP4_%s=%s", ucased, tmp));
g_free (ucased);
+ g_variant_unref (val);
}
return items;
}