route-manager: fix memleaks in nm_route_manager_ip4_route_sync()

Fixes: 4c3ba29b40
This commit is contained in:
Thomas Haller 2015-03-12 13:50:41 +01:00
parent 0e1fe1fe4e
commit 65729cb740

View file

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