mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-19 02:10:31 +01:00
libnm-util: fix a memory leaks in nm_setting_to_string()
This commit is contained in:
parent
a6dccad94c
commit
d4ac3cd593
1 changed files with 2 additions and 0 deletions
|
|
@ -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, " (");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue