com php-src: Fix closure extra args freeing for JIT as well: ext/opcache/jit/zend_jit_vm_helpers.c

From: Date: Fri, 30 Aug 2019 08:35:41 +0000
Subject: com php-src: Fix closure extra args freeing for JIT as well: ext/opcache/jit/zend_jit_vm_helpers.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108151@lists.php.net to get a copy of this message
Commit: 8239b58bea6353b6b6ce2ada06a641720525bc85 Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 30 Aug 2019 10:35:41 +0200 Parents: 2879ab46c0a282bdbc1d53fea59ca78abb0482b1 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=8239b58bea6353b6b6ce2ada06a641720525bc85 Log: Fix closure extra args freeing for JIT as well Changed paths: M ext/opcache/jit/zend_jit_vm_helpers.c Diff: diff --git a/ext/opcache/jit/zend_jit_vm_helpers.c b/ext/opcache/jit/zend_jit_vm_helpers.c index 9681f1f..70234e1 100644 --- a/ext/opcache/jit/zend_jit_vm_helpers.c +++ b/ext/opcache/jit/zend_jit_vm_helpers.c @@ -49,13 +49,14 @@ ZEND_OPCODE_HANDLER_RET ZEND_FASTCALL zend_jit_leave_nested_func_helper(uint32_t zend_clean_and_cache_symbol_table(EX(symbol_table)); } EG(current_execute_data) = EX(prev_execute_data); + + zend_vm_stack_free_extra_args_ex(call_info, execute_data); if (UNEXPECTED(call_info & ZEND_CALL_RELEASE_THIS)) { OBJ_RELEASE(Z_OBJ(execute_data->This)); } else if (UNEXPECTED(call_info & ZEND_CALL_CLOSURE)) { OBJ_RELEASE(ZEND_CLOSURE_OBJECT(EX(func))); } - zend_vm_stack_free_extra_args_ex(call_info, execute_data); old_execute_data = execute_data; execute_data = EX(prev_execute_data); zend_vm_stack_free_call_frame_ex(call_info, old_execute_data);

« previous php.cvs (#108151) next »