cvs: ZendEngine2 / zend_compile.c zend_iterators.c
| From: | Marcus Boerger | Date: | Sat, 29 Nov 2003 19:26:41 +0000 |
| Subject: | cvs: ZendEngine2 / zend_compile.c zend_iterators.c | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-2031@lists.php.net to get a copy of this message | ||
helly Sat Nov 29 14:26:41 2003 EDT
Modified files:
/ZendEngine2 zend_compile.c zend_iterators.c
Log:
Fix memleak
Index: ZendEngine2/zend_compile.c
diff -u ZendEngine2/zend_compile.c:1.497 ZendEngine2/zend_compile.c:1.498
--- ZendEngine2/zend_compile.c:1.497 Sat Nov 29 12:05:17 2003
+++ ZendEngine2/zend_compile.c Sat Nov 29 14:26:41 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_compile.c,v 1.497 2003/11/29 17:05:17 helly Exp $ */
+/* $Id: zend_compile.c,v 1.498 2003/11/29 19:26:41 helly Exp $ */
#include "zend_language_parser.h"
#include "zend.h"
Index: ZendEngine2/zend_iterators.c
diff -u ZendEngine2/zend_iterators.c:1.4 ZendEngine2/zend_iterators.c:1.5
--- ZendEngine2/zend_iterators.c:1.4 Mon Nov 10 17:06:26 2003
+++ ZendEngine2/zend_iterators.c Sat Nov 29 14:26:41 2003
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: zend_iterators.c,v 1.4 2003/11/10 22:06:26 helly Exp $ */
+/* $Id: zend_iterators.c,v 1.5 2003/11/29 19:26:41 helly Exp $ */
#include "zend.h"
#include "zend_API.h"
@@ -50,6 +50,8 @@
ZEND_API void zend_register_iterator_wrapper(TSRMLS_D)
{
INIT_CLASS_ENTRY(zend_iterator_class_entry, "__iterator_wrapper", NULL);
+ free(zend_iterator_class_entry.name);
+ zend_iterator_class_entry.name = "__iterator_wrapper";
}
static void iter_wrapper_dtor(void *object, zend_object_handle handle TSRMLS_DC)