diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-12-28 15:32:09 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-12-28 15:32:09 +0000 |
commit | 72de143266f4c6149b75fdce76b3b4510b165283 (patch) | |
tree | dca17fc874254e6f2131aef0f542fc8b94181472 | |
parent | afa5602456099601098930d1a0508d831905cdbc (diff) | |
download | php-git-72de143266f4c6149b75fdce76b3b4510b165283.tar.gz |
Fixed possible memory corruption
-rw-r--r-- | Zend/zend_execute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_execute.c b/Zend/zend_execute.c index 5d41457623..a325b75ab5 100644 --- a/Zend/zend_execute.c +++ b/Zend/zend_execute.c @@ -731,6 +731,7 @@ static inline zval* zend_assign_to_variable(zval **variable_ptr_ptr, zval *value Z_DELREF_P(value); } zendi_zval_dtor(garbage); + return value; } } else { if (variable_ptr != value) { @@ -769,6 +770,7 @@ static inline zval* zend_assign_to_variable(zval **variable_ptr_ptr, zval *value Z_DELREF_P(value); } zendi_zval_dtor(garbage); + return value; } } else { if (Z_DELREF_P(variable_ptr)==0) { |