Removed useless zval_ptr_dtor(return_value)

This commit is contained in:
Dmitry Stogov 2018-12-26 12:58:11 +03:00
parent d90a5d2e1a
commit 22c9d19144
3 changed files with 2 additions and 5 deletions

View file

@ -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);
}