dmitry Wed Jun 11 07:45:44 2008 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/tokenizer tokenizer.c Log: Fixed memory leak http://cvs.php.net/viewvc.cgi/php-src/ext/tokenizer/tokenizer.c?r1=1.31.2.5.2.7.2.4&r2=1.31.2.5.2.7.2.5&diff_format=u Index: php-src/ext/tokenizer/tokenizer.c diff -u php-src/ext/tokenizer/tokenizer.c:1.31.2.5.2.7.2.4 php-src/ext/tokenizer/tokenizer.c:1.31.2.5.2.7.2.5 --- php-src/ext/tokenizer/tokenizer.c:1.31.2.5.2.7.2.4 Sun Mar 16 21:06:53 2008 +++ php-src/ext/tokenizer/tokenizer.c Wed Jun 11 07:45:44 2008 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: tokenizer.c,v 1.31.2.5.2.7.2.4 2008/03/16 21:06:53 helly Exp $ */ +/* $Id: tokenizer.c,v 1.31.2.5.2.7.2.5 2008/06/11 07:45:44 dmitry Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -168,6 +168,10 @@ tokenize(return_value TSRMLS_CC); + while (!zend_stack_is_empty(&LANG_SCNG(state_stack))) { + zend_stack_del_top(&LANG_SCNG(state_stack)); + } + zend_restore_lexical_state(&original_lex_state TSRMLS_CC); zval_dtor(&source_z); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php