Only the wavelength varies with gravitational influence. If the gravity is weak enough, light escapes at c.
Thank you. My fingers are faster than my mind tonight.