(re_search_internal): Invoke memory release