diff options
Diffstat (limited to 'ext/opcache/jit/zend_jit_helpers.c')
-rw-r--r-- | ext/opcache/jit/zend_jit_helpers.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/opcache/jit/zend_jit_helpers.c b/ext/opcache/jit/zend_jit_helpers.c index 5d5a30541b..7c164cd23b 100644 --- a/ext/opcache/jit/zend_jit_helpers.c +++ b/ext/opcache/jit/zend_jit_helpers.c @@ -2666,4 +2666,11 @@ static zend_result ZEND_FASTCALL zval_jit_update_constant_ex(zval *p, zend_class } return SUCCESS; } -#endif
\ No newline at end of file +#endif + +static void ZEND_FASTCALL zend_jit_free_trampoline_helper(zend_function *func) +{ + ZEND_ASSERT(func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE); + zend_string_release_ex(func->common.function_name, 0); + zend_free_trampoline(func); +} |