Mercurial > hg > octave-lyh > gnulib-hg
changeset 4760:0bb62f52421d
(regex_compile): Free the stack when returning from function.
author | Richard Stallman <rms@gnu.org> |
---|---|
date | Tue, 30 Sep 2003 12:36:17 +0000 |
parents | 27c6099e6a9f |
children | feca2e26f367 |
files | regex.c |
diffstat | 1 files changed, 1 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/regex.c +++ b/regex.c @@ -3514,8 +3514,6 @@ 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 @@ } #endif /* not MATCH_MAY_ALLOCATE */ - return REG_NOERROR; + FREE_STACK_RETURN (REG_NOERROR); } /* regex_compile */ /* Subroutines for `regex_compile'. */