This is the mail archive of the
glibc-bugs-regex@sources.redhat.com
mailing list for the glibc project.
[Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak
- From: "dreamershl at gmail dot com" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs-regex at sources dot redhat dot com
- Date: 13 Mar 2005 05:59:36 -0000
- Subject: [Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
When I use the fastmap in the regex. I find the memory leak. each time it will
cost 20 bytes. I check the re_compile_fastmap(). I find it seem this function
don't release the structure "fail_stack_type" memory. In the INIT_FAIL_STACK
macro, the fail_stack will get 5* sizeof (fail_stack_elt_t) bytes memory. but I
can't find the release statement at the end of the function.
int re_compile_fastmap (struct re_pattern_buffer *bufp)
{
fail_stack_type fail_stack;
...
INIT_FAIL_STACK ();
}
--
Summary: re_comile_fastmap() will cause the 20 bytes memory leak
Product: glibc
Version: unspecified
Status: NEW
Severity: critical
Priority: P1
Component: regex
AssignedTo: gotom at debian dot or dot jp
ReportedBy: dreamershl at gmail dot com
CC: glibc-bugs-regex at sources dot redhat dot com,glibc-
bugs at sources dot redhat dot com
http://sources.redhat.com/bugzilla/show_bug.cgi?id=788
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.