Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
7c67c9f6
Commit
7c67c9f6
authored
Sep 30, 2003
by
Richard M. Stallman
Browse files
(regex_compile): Free the stack when returning from function.
parent
34894ec3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
src/regex.c
src/regex.c
+1
-3
No files found.
src/regex.c
View file @
7c67c9f6
...
...
@@ -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'. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment