mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 20:00:09 +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)
This commit is contained in:
parent
10b246d03d
commit
a9d7554a02
1 changed files with 1 additions and 0 deletions
|
|
@ -3745,6 +3745,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