cvs: ZendEngine2 / zend_execute_API.c
| From: | Dmitry Stogov | Date: | Mon, 22 Aug 2005 06:56:29 +0000 |
| Subject: | cvs: ZendEngine2 / zend_execute_API.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-4059@lists.php.net to get a copy of this message | ||
dmitry Mon Aug 22 02:56:29 2005 EDT
Modified files:
/ZendEngine2 zend_execute_API.c
Log:
Fixed memory leak
http://cvs.php.net/diff.php/ZendEngine2/zend_execute_API.c?r1=1.336&r2=1.337&ty=u
Index: ZendEngine2/zend_execute_API.c
diff -u ZendEngine2/zend_execute_API.c:1.336 ZendEngine2/zend_execute_API.c:1.337
--- ZendEngine2/zend_execute_API.c:1.336 Fri Aug 19 09:20:14 2005
+++ ZendEngine2/zend_execute_API.c Mon Aug 22 02:56:26 2005
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_execute_API.c,v 1.336 2005/08/19 13:20:14 dmitry Exp $ */
+/* $Id: zend_execute_API.c,v 1.337 2005/08/22 06:56:26 dmitry Exp $ */
#include <stdio.h>
#include <signal.h>
@@ -1006,7 +1006,7 @@
return FAILURE;
}
- ZVAL_STRINGL(&autoload_function, ZEND_AUTOLOAD_FUNC_NAME, sizeof(ZEND_AUTOLOAD_FUNC_NAME)-1,
0);
+ ZVAL_STRINGL(&autoload_function, ZEND_AUTOLOAD_FUNC_NAME, sizeof(ZEND_AUTOLOAD_FUNC_NAME)-1,
0);
ALLOC_ZVAL(class_name_ptr);
INIT_PZVAL(class_name_ptr);
@@ -1038,6 +1038,10 @@
retval = zend_call_function(&fcall_info, &fcall_cache TSRMLS_CC);
EG(autoload_func) = fcall_cache.function_handler;
+ if (UG(unicode)) {
+ zval_dtor(&autoload_function);
+ }
+
zval_ptr_dtor(&class_name_ptr);
zend_u_hash_del(EG(in_autoload), type, lc_name, lc_name_len+1);