summaryrefslogtreecommitdiff
path: root/ext/imap
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@zend.com>2018-12-26 12:58:11 +0300
committerDmitry Stogov <dmitry@zend.com>2018-12-26 12:58:11 +0300
commit22c9d19144285efaa28ece5d510fbd9ab800ffa8 (patch)
tree344854fed19f1c3bdf388eab79fe7933418b145b /ext/imap
parentd90a5d2e1a41c22ef632c2263784e87d15b58dde (diff)
downloadphp-git-22c9d19144285efaa28ece5d510fbd9ab800ffa8.tar.gz
Removed useless zval_ptr_dtor(return_value)
Diffstat (limited to 'ext/imap')
-rw-r--r--ext/imap/php_imap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c
index e88318e6f7..d58e7c59ec 100644
--- a/ext/imap/php_imap.c
+++ b/ext/imap/php_imap.c
@@ -3353,13 +3353,13 @@ PHP_FUNCTION(imap_bodystruct)
RETURN_FALSE;
}
- object_init(return_value);
body=mail_body(imap_le_struct->imap_stream, msg, (unsigned char*)ZSTR_VAL(section));
if (body == NULL) {
- zval_ptr_dtor(return_value);
RETURN_FALSE;
}
+
+ object_init(return_value);
if (body->type <= TYPEMAX) {
add_property_long(return_value, "type", body->type);
}