projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a802e7b
)
(regex_compile): Free the stack when returning from function.
author
Richard Stallman
<rms@gnu.org>
Tue, 30 Sep 2003 12:36:17 +0000
(12:36 +0000)
committer
Richard Stallman
<rms@gnu.org>
Tue, 30 Sep 2003 12:36:17 +0000
(12:36 +0000)
regex.c
patch
|
blob
|
history
diff --git
a/regex.c
b/regex.c
index a31bb490ff2376d09a884258091c25689be56fc2..a57ae00d14fbc967c0ac56259aedd46960fa8026 100644
(file)
--- a/
regex.c
+++ b/
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 */
\f
/* Subroutines for `regex_compile'. */