ip6: fix leak in process_route()

rtnlroute is leaked if nm_ip6_manager_get_device returns NULL
This commit is contained in:
Thomas Graf 2011-09-09 11:39:03 +02:00 committed by Dan Williams
parent f3d4cd385e
commit cc2c2baee6

View file

@ -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;
}