diff options
author | Dmitry Stogov <dmitry@zend.com> | 2018-07-05 11:54:26 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2018-07-05 11:54:26 +0300 |
commit | b6cc4d2009a7df108c2858f28750d01e55c6de24 (patch) | |
tree | 2a5f9120e946fd932cf3f98104200a45feeeaa8a /ext/imap | |
parent | 265c3ed6cfd05b78fb65187f18b3e1ecb560c242 (diff) | |
download | php-git-b6cc4d2009a7df108c2858f28750d01e55c6de24.tar.gz |
Use zval_ptr_dtor() instead of zval_dtor() in internal functions that destroy new created object (This is safer and produces less code)
Diffstat (limited to 'ext/imap')
-rw-r--r-- | ext/imap/php_imap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/imap/php_imap.c b/ext/imap/php_imap.c index 86b0011f09..78b6ebd19c 100644 --- a/ext/imap/php_imap.c +++ b/ext/imap/php_imap.c @@ -3339,7 +3339,7 @@ PHP_FUNCTION(imap_bodystruct) body=mail_body(imap_le_struct->imap_stream, msg, (unsigned char*)ZSTR_VAL(section)); if (body == NULL) { - zval_dtor(return_value); + zval_ptr_dtor(return_value); RETURN_FALSE; } if (body->type <= TYPEMAX) { |