Brandon Marquis Cozart, who was due in court Wednesday on five charges of statutory rape, was released from custody overnight by mistake, according to Wake County Sheriff Donnie Harrison.