From: Richard M. Stallman Date: Tue, 30 Sep 2003 12:36:17 +0000 (+0000) Subject: (regex_compile): Free the stack when returning from function. X-Git-Tag: ttn-vms-21-2-B4~8690 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7c67c9f660052c903a555c5d205e83c274cfd80a;p=emacs.git (regex_compile): Free the stack when returning from function. --- diff --git a/src/regex.c b/src/regex.c index a31bb490ff2..a57ae00d14f 100644 --- a/src/regex.c +++ b/src/regex.c @@ -3514,8 +3514,6 @@ regex_compile (pattern, size, syntax, bufp) if (syntax & RE_NO_POSIX_BACKTRACKING) BUF_PUSH (succeed); - free (compile_stack.stack); - /* We have succeeded; set the length of the buffer. */ bufp->used = b - bufp->buffer; @@ -3555,7 +3553,7 @@ regex_compile (pattern, size, syntax, bufp) } #endif /* not MATCH_MAY_ALLOCATE */ - return REG_NOERROR; + FREE_STACK_RETURN (REG_NOERROR); } /* regex_compile */ /* Subroutines for `regex_compile'. */