]> granicus.if.org Git - php/commitdiff
MFH: - Fixed bug #31444 (Memory leak in zend_language_scanner.c)
authorfoobar <sniper@php.net>
Mon, 17 Jan 2005 17:21:57 +0000 (17:21 +0000)
committerfoobar <sniper@php.net>
Mon, 17 Jan 2005 17:21:57 +0000 (17:21 +0000)
NEWS
Zend/zend_language_scanner.l

diff --git a/NEWS b/NEWS
index 08b5177d714c6fc0c9ff69084a3279cd429db1da..dbb5dd82e153ac68a507f3b2b6cd1455bc2802c6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -6,6 +6,8 @@ PHP                                                                        NEWS
 - Fixed a bug in mysqli_stmt_execute() (type conversion with NULL values). (Georg)
 - Fixed bug #31454 (session_set_save_handler crashes PHP when supplied 
   non-existent object ref). (Tony)
+- Fixed bug #31444 (Memory leak in zend_language_scanner.c).
+  (hexer at studentcenter dot org)
 - Fixed bug #31413 (curl POSTFIELDS crashes on 64-bit platforms). (Joe)
 - Fixed bug #31396 (compile fails with gd 2.0.33 without freetype). (Jani)
 - Fixed bug #31371 (highlight_file() trims new line after heredoc). (Ilia)
index a9c814f717848a36c8558cf4f68e034e3fab123d..f03674aa68c391a6abea481d9477a78b3933dfb7 100644 (file)
@@ -144,6 +144,10 @@ void shutdown_scanner(TSRMLS_D)
                efree(CG(heredoc));
                CG(heredoc_len)=0;
        }
+       if (SCNG(yy_start_stack)) {
+               yy_flex_free(SCNG(yy_start_stack));
+               SCNG(yy_start_stack) = NULL;
+       }
        RESET_DOC_COMMENT();
        
 #ifdef ZEND_MULTIBYTE