com php-src: Temporary memory leak fix (should be done in a better way): Zend/zend_exceptions.c
| From: | Dmitry Stogov | Date: | Wed, 26 Feb 2014 13:36:39 +0000 |
| Subject: | com php-src: Temporary memory leak fix (should be done in a better way): Zend/zend_exceptions.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-77903@lists.php.net to get a copy of this message | ||
Commit: e49c0804dafa5a3baad7ceff8f82d17260124bac
Author: Dmitry Stogov <dmitry@zend.com> Wed, 26 Feb 2014 17:36:39 +0400
Parents: 39c466147ad33b8cf052c1acb95c6cfbb6454265
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e49c0804dafa5a3baad7ceff8f82d17260124bac
Log:
Temporary memory leak fix (should be done in a better way)
Changed paths:
M Zend/zend_exceptions.c
Diff:
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c
index 791f7a2..531ec34 100644
--- a/Zend/zend_exceptions.c
+++ b/Zend/zend_exceptions.c
@@ -655,7 +655,8 @@ ZEND_METHOD(exception, __toString)
zend_update_property_string(default_exception_ce, getThis(), "string",
sizeof("string")-1, str TSRMLS_CC);
//??? RETURN_STRINGL(str, len, 0);
- RETURN_STRINGL(str, len);
+ RETVAL_STRINGL(str, len);
+ efree(str);
}
/* }}} */