Freiburg beat Heidenheim 2-1 on Bundesliga matchday 30, moving seventh as Johan Manzambi and Maximilian Eggestein delivered the late win.