public inbox for glibc-bugs-regex@sourceware.org
help / color / mirror / Atom feed
* [Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak
@ 2005-03-13  5:59 dreamershl at gmail dot com
  2005-03-15  7:22 ` [Bug regex/788] " jakub at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: dreamershl at gmail dot com @ 2005-03-13  5:59 UTC (permalink / raw)
  To: glibc-bugs-regex

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug regex/788] re_comile_fastmap() will cause the 20 bytes memory leak
  2005-03-13  5:59 [Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak dreamershl at gmail dot com
@ 2005-03-15  7:22 ` jakub at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: jakub at redhat dot com @ 2005-03-15  7:22 UTC (permalink / raw)
  To: glibc-bugs-regex


------- Additional Comments From jakub at redhat dot com  2005-03-15 07:22 -------
This regex implementation is not in glibc for more than 3 years now.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID


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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-15  7:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-03-13  5:59 [Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak dreamershl at gmail dot com
2005-03-15  7:22 ` [Bug regex/788] " jakub at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).