This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch, master, updated. glibc-2.12-186-gb833d51
- From: drepper at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 12 Oct 2010 13:00:54 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.12-186-gb833d51
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via b833d51fbbf78b38c6ff68074c22d3fe3ddd0ce3 (commit)
from e9b9cbf5e9bdcda6f0b50456658bac748202dd70 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b833d51fbbf78b38c6ff68074c22d3fe3ddd0ce3
commit b833d51fbbf78b38c6ff68074c22d3fe3ddd0ce3
Author: Ulrich Drepper <drepper@redhat.com>
Date: Tue Oct 12 09:00:33 2010 -0400
One more regex memory leak fixed.
diff --git a/ChangeLog b/ChangeLog
index 2192364..e2a4a70 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/posix/bug-regex31.input b/posix/bug-regex31.input
index eea961c..3d1f531 100644
--- a/posix/bug-regex31.input
+++ b/posix/bug-regex31.input
@@ -1,3 +1,4 @@
+[[][
([0]
([0]a
([0]([0])
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 4ee7b90..b238c08 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -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)
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
posix/bug-regex31.input | 1 +
posix/regcomp.c | 2 ++
3 files changed, 9 insertions(+), 0 deletions(-)
hooks/post-receive
--
GNU C Library master sources