mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-02 03:48:09 +02:00
ifcfg-rh: fix a memory leak
This commit is contained in:
parent
0759f7fbdb
commit
3d7931bbf6
1 changed files with 2 additions and 1 deletions
|
|
@ -1465,14 +1465,15 @@ make_ip6_setting (shvarFile *ifcfg,
|
|||
method = NM_SETTING_IP6_CONFIG_METHOD_DHCP;
|
||||
else {
|
||||
/* IPV6_AUTOCONF=no and no IPv6 address -> method 'link-local' */
|
||||
g_free (str_value);
|
||||
str_value = svGetValueString (ifcfg, "IPV6ADDR");
|
||||
if (!str_value)
|
||||
str_value = svGetValueString (ifcfg, "IPV6ADDR_SECONDARIES");
|
||||
|
||||
if (!str_value)
|
||||
method = NM_SETTING_IP6_CONFIG_METHOD_LINK_LOCAL;
|
||||
g_free (str_value);
|
||||
}
|
||||
g_free (str_value);
|
||||
}
|
||||
/* TODO - handle other methods */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue