This phrase is used in Spain and it means to avoid a difficult or unpleasant situation, similar to the English idiom 'dodge a bullet'.
Examples
- Spanish: ¡Menos mal que llegué a tiempo para la reunión, me libré la coca!
- English: Thank goodness I arrived on time for the meeting, I dodged a bullet!