Re: memory leak on regular expression (regex.c)

2008-04-02 Thread Ian Lance Taylor
amihud bruchim <[EMAIL PROTECTED]> writes: > I found a memory leak on regcomp function - gcc-4.4.2 (i used Memory > validator tool to confirm it) . regcomp is part of glibc (or whatever C library you are using). It is not part of gcc. For more information, including where to report bugs, plea

memory leak on regular expression (regex.c)

2008-04-01 Thread amihud bruchim
Hello, I found a memory leak on regcomp function - gcc-4.4.2 (i used Memory validator tool to confirm it) . On regcomp this line if (re_compile_fastmap (preg) == -2) is the cause to the memory leak (it calls to re_compile_fastmap function that allocates memory that is not release) The code o