mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 16:10:11 +01:00
ifcfg-rh/proxy: fix memleak in make_proxy_setting()
This commit is contained in:
parent
8b51e345af
commit
8bc8d343ca
1 changed files with 2 additions and 3 deletions
|
|
@ -949,10 +949,9 @@ make_proxy_setting (shvarFile *ifcfg, GError **error)
|
|||
|
||||
value = svGetValue (ifcfg, "BROWSER_ONLY", FALSE);
|
||||
if (value) {
|
||||
if (!g_ascii_strcasecmp (value, "yes")) {
|
||||
if (!g_ascii_strcasecmp (value, "yes"))
|
||||
g_object_set (s_proxy, NM_SETTING_PROXY_BROWSER_ONLY, TRUE, NULL);
|
||||
g_free (value);
|
||||
}
|
||||
g_free (value);
|
||||
}
|
||||
|
||||
return NM_SETTING (s_proxy);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue