Judge frees woman seconds after giving her probation