Skip to content

Commit

Permalink
Add missing refcount increment
Browse files Browse the repository at this point in the history
  • Loading branch information
nikic committed Oct 30, 2019
1 parent f9895b4 commit 5f6eaf3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Zend/zend_closures.c
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ static int zend_create_closure_from_callable(zval *return_value, zval *callable,
if (fcc.object && fcc.object->ce == zend_ce_closure
&& zend_string_equals_literal(mptr->common.function_name, "__invoke")) {
ZVAL_OBJ(return_value, fcc.object);
GC_REFCOUNT(fcc.object)++;
zend_free_trampoline(mptr);
return SUCCESS;
}
Expand Down

0 comments on commit 5f6eaf3

Please sign in to comment.