Free lst if content can't be allocated