mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 03:40:07 +01:00
ip6: fix leak in process_route()
rtnlroute is leaked if nm_ip6_manager_get_device returns NULL
This commit is contained in:
parent
f3d4cd385e
commit
cc2c2baee6
1 changed files with 1 additions and 0 deletions
|
|
@ -591,6 +591,7 @@ process_route (NMIP6Manager *manager, struct nl_msg *msg)
|
|||
device = nm_ip6_manager_get_device (manager, rtnl_route_get_oif (rtnlroute));
|
||||
if (!device) {
|
||||
nm_log_dbg (LOGD_IP6, "ignoring message for unknown device");
|
||||
rtnl_route_put (rtnlroute);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue