diff options
| author | Andi Gutmans <andi@php.net> | 1999-07-18 17:33:51 +0000 |
|---|---|---|
| committer | Andi Gutmans <andi@php.net> | 1999-07-18 17:33:51 +0000 |
| commit | e3daad2d67254f156a5e5995a1934b30c16cde10 (patch) | |
| tree | 09e59b43b8d679dd209ef0e862dc9992df2dbaac /Zend/zend_execute_API.c | |
| parent | 99a2aa0f804e1ccbeb0fa15dc440506b1f15098e (diff) | |
| download | php-git-e3daad2d67254f156a5e5995a1934b30c16cde10.tar.gz | |
- Should fix the memory leak when returning from the main scope.
Diffstat (limited to 'Zend/zend_execute_API.c')
| -rw-r--r-- | Zend/zend_execute_API.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute_API.c b/Zend/zend_execute_API.c index f8f4e6e1a7..262b21ab7a 100644 --- a/Zend/zend_execute_API.c +++ b/Zend/zend_execute_API.c @@ -100,6 +100,7 @@ void init_executor(CLS_D ELS_DC) #endif #endif EG(return_value) = &EG(global_return_value); + var_reset(EG(return_value)); EG(symtable_cache_ptr) = EG(symtable_cache)-1; EG(symtable_cache_limit)=EG(symtable_cache)+SYMTABLE_CACHE_SIZE-1; EG(no_extensions)=0; @@ -120,6 +121,7 @@ void init_executor(CLS_D ELS_DC) void shutdown_executor(ELS_D) { + zval_dtor(EG(return_value)); zend_ptr_stack_destroy(&EG(arg_types_stack)); zend_stack_destroy(&EG(overloaded_objects_stack)); |
