mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 12:40:11 +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)
This commit is contained in:
parent
dbae0113db
commit
e17e207b3c
1 changed files with 1 additions and 0 deletions
|
|
@ -3722,6 +3722,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