mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 05:20:06 +00:00
One more regex memory leak fixed.
This commit is contained in:
parent
e9b9cbf5e9
commit
b833d51fbb
@ -1,3 +1,9 @@
|
||||
2010-10-12 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
[BZ #12078]
|
||||
* posix/regcomp.c (parse_branch): One more memory leak plugged.
|
||||
* posix/bug-regex31.input: Add test case.
|
||||
|
||||
2010-10-11 Ulrich Drepper <drepper@gmail.com>
|
||||
|
||||
* posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
|
||||
|
@ -1,3 +1,4 @@
|
||||
[[][
|
||||
([0]
|
||||
([0]a
|
||||
([0]([0])
|
||||
|
@ -2160,6 +2160,8 @@ parse_branch (re_string_t *regexp, regex_t *preg, re_token_t *token,
|
||||
exp = parse_expression (regexp, preg, token, syntax, nest, err);
|
||||
if (BE (*err != REG_NOERROR && exp == NULL, 0))
|
||||
{
|
||||
if (tree != NULL)
|
||||
postorder (tree, free_tree, NULL);
|
||||
return NULL;
|
||||
}
|
||||
if (tree != NULL && exp != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user