mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 11:20:23 +01:00
libnm-core: fix memory leak in nm_setting_to_string()
Fixes:f957ea2b34('core/setting: rework nm_connection_dump()') https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/1934 (cherry picked from commitee5f4402bf) (cherry picked from commita9d7554a02) (cherry picked from commite17e207b3c)
This commit is contained in:
parent
d81852e87d
commit
cb36b8507f
1 changed files with 1 additions and 0 deletions
|
|
@ -3568,6 +3568,7 @@ nm_setting_to_string(NMSetting *setting)
|
|||
value_str = g_variant_print(value, FALSE);
|
||||
|
||||
g_string_append_printf(string, "\t%s : %s\n", name, value_str);
|
||||
g_variant_unref(child);
|
||||
}
|
||||
|
||||
return g_string_free(string, FALSE);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue