Information on taking a leave of absence can be found on the corresponding TUM page.
Please keep in mind that the application for the leave of absence has to handed in latest until the start of the lecture period of the semester you want to take the leave in.