Leaky and non-leaky oscillations in magnetic flux tubes