I've read that when a carboxylic acid reacts with $\ce{LiAlH4}$ the corresponding alcohol is formed:
But when I try to think of the mechanism, I get stuck here:
$\ce{LiAlH4}$ produces $\ce{H-}$. Since $\ce{H-}$ is a strong base it should immediately abstract a proton from the carboxylic acid to give the corresponding carboxylate ion (just like in the reaction of carboxylic acids with Grignard reagents), instead of undergoing nucleophilic addition to give the alcohol.
How do I resolve this?