Sri Lanka to release former hero general