Fix memory leak in yr_re_exec