diff options
-rw-r--r-- | Zend/zend_exceptions.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Zend/zend_exceptions.c b/Zend/zend_exceptions.c index 791f7a25c5..531ec345b7 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); } /* }}} */ |