diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2008-03-07 02:04:40 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2008-03-07 02:04:40 +0000 |
commit | bbf53bbb04125de735bb68204737f0dde34ab68e (patch) | |
tree | 56c0752783e37dd1ca288ccccb23c16d6f49db9c /ext | |
parent | cbdc4b9af82b786a1a0f56fa2452d7a8dfdb7691 (diff) | |
download | php-git-bbf53bbb04125de735bb68204737f0dde34ab68e.tar.gz |
Fixed a memory leak inside date_get_last_errors() when there are no errors
Diffstat (limited to 'ext')
-rw-r--r-- | ext/date/php_date.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 436bd38cc1..9a9b5d61f4 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1914,8 +1914,8 @@ void zval_from_error_container(zval *z, timelib_error_container *error) */ PHP_FUNCTION(date_get_last_errors) { - array_init(return_value); if (DATEG(last_errors)) { + array_init(return_value); zval_from_error_container(return_value, DATEG(last_errors)); } else { RETURN_FALSE; |