Make sure to correctly exit the loop in priv_flush_routes() in case of
allocation failure; ok krw@