Halogenation of alcohols in the presence of ZnCl2
You are right, $\ce{OH-}$ is a bad leaving group. But the $\ce{HCl}$ in the reaction mixture protonates it. Thus, the bad leaving group $\ce{OH-}$ is converted to the good leaving group $\ce{H2O}$. Anhydrous $\ce{ZnCl2}$ might additionally facilitate the reaction by acting as a Lewis acid and it binds the expelled water thus preventing the back reaction.