mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 23:08:12 +02:00
route-manager: fix memleaks in nm_route_manager_ip4_route_sync()
Fixes:4c3ba29b40(cherry picked from commit65729cb740)
This commit is contained in:
parent
7d1d5b160b
commit
0a0615fcbe
1 changed files with 4 additions and 0 deletions
|
|
@ -170,6 +170,8 @@ nm_route_manager_ip4_route_sync (NMRouteManager *self, int ifindex, const GArray
|
|||
}
|
||||
}
|
||||
|
||||
g_array_unref (plat_routes);
|
||||
|
||||
if (!known_routes)
|
||||
return TRUE;
|
||||
|
||||
|
|
@ -292,6 +294,8 @@ nm_route_manager_ip6_route_sync (NMRouteManager *self, int ifindex, const GArray
|
|||
}
|
||||
}
|
||||
|
||||
g_array_unref (plat_routes);
|
||||
|
||||
if (!known_routes)
|
||||
return TRUE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue