Sri Lanka's ex-army chief freed from jail