1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 08:02:49 +02:00

Merge branch 'PHP-8.1'

* PHP-8.1:
  Tracing JIT: Fixed possible memory-leak or missed destructor call.
This commit is contained in:
Dmitry Stogov
2021-09-28 22:41:57 +03:00

View File

@@ -1928,6 +1928,11 @@ propagate_arg:
return_value_info.type &= ~MAY_BE_UNDEF;
return_value_info.type |= MAY_BE_NULL;
}
if (return_value_info.type & (MAY_BE_STRING|MAY_BE_ARRAY|MAY_BE_OBJECT|MAY_BE_RESOURCE)) {
/* CVs are going to be destructed and the reference-counter
of return value may be decremented to 1 */
return_value_info.type |= MAY_BE_RC1;
}
return_value_info.type &= ~MAY_BE_GUARD;
}
break;