1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00

Remove useless zval_ptr_dtor() in user_filter_factory_create()

At this point, retval is false.
This commit is contained in:
Niels Dossche
2025-10-03 20:39:33 +02:00
parent 3c2a570a22
commit bcb56122b9

View File

@@ -301,9 +301,6 @@ static php_stream_filter *user_filter_factory_create(const char *filtername,
if (Z_TYPE(retval) != IS_UNDEF) {
if (Z_TYPE(retval) == IS_FALSE) {
/* User reported filter creation error "return false;" */
zval_ptr_dtor(&retval);
/* Kill the filter (safely) */
ZVAL_UNDEF(&filter->abstract);
php_stream_filter_free(filter);