--- regex-posix.c.~1.78.2.1.~ 2006-02-14 08:59:02.000000000 +1100 +++ regex-posix.c 2007-01-13 12:53:32.000000000 +1100 @@ -245,7 +245,6 @@ whole regexp, so add 1 to nmatches. */ nmatches = SCM_RGX(rx)->re_nsub + 1; - SCM_CRITICAL_SECTION_START; matches = scm_malloc (sizeof (regmatch_t) * nmatches); c_str = scm_to_locale_string (substr); status = regexec (SCM_RGX (rx), c_str, nmatches, matches, @@ -269,7 +268,6 @@ scm_from_long (matches[i].rm_eo + offset))); } free (matches); - SCM_CRITICAL_SECTION_END; if (status != 0 && status != REG_NOMATCH) scm_error_scm (scm_regexp_error_key,