diff options
author | Dan Kalowsky <kalowsky@php.net> | 2002-07-26 16:59:11 +0000 |
---|---|---|
committer | Dan Kalowsky <kalowsky@php.net> | 2002-07-26 16:59:11 +0000 |
commit | 05f388199528ca218458f86c4aa393b6f8eab66e (patch) | |
tree | d0a32ef1bc500fa6927268cb17bc0704ee1027c3 /ext/imap/php_imap.c | |
parent | 797f7736eba934e4acb0d2f81e4ca3d874a3ded2 (diff) | |
download | php-git-05f388199528ca218458f86c4aa393b6f8eab66e.tar.gz |
Minor memory fix suggested by Zeev
Diffstat (limited to 'ext/imap/php_imap.c')
-rw-r--r-- | ext/imap/php_imap.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index c75f58934b..0b8a357bc3 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -1131,12 +1131,8 @@ PHP_FUNCTION(imap_get_quotaroot) RETURN_FALSE; } - if (array_init(return_value) == FAILURE) { - php_error(E_WARNING, "%s(): Unable to allocate array memory", get_active_function_name(TSRMLS_C)); - RETURN_FALSE; - } - - add_next_index_zval(return_value, IMAPG(quotaroot_return)); + *return_value = *IMAPG(quotaroot_return); + FREE_ZVAL(IMAPG(quotaroot_return)); } /* }}} */ |