Leaky waves in spatial stability analysis