Resolved memory leak in Regex_Match