mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-26 01:30:25 +01:00
route-manager: fix memleaks in nm_route_manager_ip4_route_sync()
Fixes: 4c3ba29b40
This commit is contained in:
parent
0e1fe1fe4e
commit
65729cb740
1 changed files with 4 additions and 0 deletions
|
|
@ -168,6 +168,8 @@ nm_route_manager_ip4_route_sync (NMRouteManager *self, int ifindex, const GArray
|
|||
}
|
||||
}
|
||||
|
||||
g_array_unref (plat_routes);
|
||||
|
||||
if (!known_routes)
|
||||
return TRUE;
|
||||
|
||||
|
|
@ -287,6 +289,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