route-manager: fix memleaks in nm_route_manager_ip4_route_sync()

Fixes: 4c3ba29b40
(cherry picked from commit 65729cb740)
This commit is contained in:
Thomas Haller 2015-03-12 13:50:41 +01:00 committed by Lubomir Rintel
parent 7d1d5b160b
commit 0a0615fcbe

View file

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