ID: 43385 Updated by: [EMAIL PROTECTED] Reported By: andy at petdance dot com -Status: Open +Status: Feedback Bug Type: *General Issues Operating System: * PHP Version: 5.3CVS-2007-11-23 (CVS) New Comment:
man regfree(): "Supplying regfree() with a precompiled pattern buffer, preg will free the memory allocated to the pattern buffer by the compiling process, regcomp()." Previous Comments: ------------------------------------------------------------------------ [2007-11-26 13:54:02] andy at petdance dot com Because you never call free() on something that has not been malloc()ed. ------------------------------------------------------------------------ [2007-11-26 10:49:26] [EMAIL PROTECTED] You mean regfree() is not appropriate? How come? ------------------------------------------------------------------------ [2007-11-23 06:47:33] andy at petdance dot com Then again, it seems to be happening all over, not just in this one function. It sure seems to be a segfault waiting to happen. ------------------------------------------------------------------------ [2007-11-23 06:31:44] andy at petdance dot com Description: ------------ At the tail end of browser_reg_compare, it frees stack variable r. This is never appropriate. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=43385&edit=1