What happens to the methanol formed by the hydrolysis of methyl 2-hydroxybenzoate (oil of wintergreen) when synthesising salicylic acid?
The methanol plays no underlying role in the reaction

Without more detail of the reaction procedure I cannot give a complete answer, but my expectation is that after the HCl addition the reaction will be quenched by addition of water to either precipitate the salicylic acid or then be extracted into an immiscible organic solvent. The methanol will stay in the aqueous phase in either case.