This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug regex/788] New: re_comile_fastmap() will cause the 20 bytes memory leak


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]