Sex offender to be released Friday