Teacher accused of sexual misconduct with student walks free