libnm-util: fix a memory leaks in nm_setting_to_string()

This commit is contained in:
Jiří Klimeš
2010-12-13 20:55:02 +01:00
parent a6dccad94c
commit d4ac3cd593

View File

@@ -620,6 +620,8 @@ nm_setting_to_string (NMSetting *setting)
is_serializable = prop_spec->flags & NM_SETTING_PARAM_SERIALIZE;
is_default = g_param_value_defaults (prop_spec, &value);
g_value_unset (&value);
if (is_serializable || is_default) {
g_string_append (string, " (");