dmitry          Wed Jun 11 07:45:26 2008 UTC

  Modified files:              
    /php-src/ext/tokenizer      tokenizer.c 
  Log:
  Fixed memory leak
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/tokenizer/tokenizer.c?r1=1.47&r2=1.48&diff_format=u
Index: php-src/ext/tokenizer/tokenizer.c
diff -u php-src/ext/tokenizer/tokenizer.c:1.47 
php-src/ext/tokenizer/tokenizer.c:1.48
--- php-src/ext/tokenizer/tokenizer.c:1.47      Wed Mar 26 14:46:17 2008
+++ php-src/ext/tokenizer/tokenizer.c   Wed Jun 11 07:45:26 2008
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
 */
 
-/* $Id: tokenizer.c,v 1.47 2008/03/26 14:46:17 scottmac Exp $ */
+/* $Id: tokenizer.c,v 1.48 2008/06/11 07:45:26 dmitry Exp $ */
 
 #ifdef HAVE_CONFIG_H
 #include "config.h"
@@ -170,6 +170,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

Reply via email to