mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-06 18:28:03 +02:00
dhcp: fix memleak in process_dhclient_rfc3442_route()
(cherry picked from commit 1935fca09a)
This commit is contained in:
parent
825eb5cb62
commit
84ff53ec76
1 changed files with 1 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ process_dhclient_rfc3442_route (const char **octets,
|
||||||
g_free (str_addr);
|
g_free (str_addr);
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
g_free (str_addr);
|
||||||
tmp_addr &= nm_utils_ip4_prefix_to_netmask ((guint32) tmp);
|
tmp_addr &= nm_utils_ip4_prefix_to_netmask ((guint32) tmp);
|
||||||
route->network = tmp_addr;
|
route->network = tmp_addr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue