Skip to content

Commit 5493fcc

Browse files
committed
Fix wrong pointer
1 parent 1a5da26 commit 5493fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Zend/zend_fibers.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ ZEND_API zend_fiber_context *zend_fiber_switch_context(zend_fiber_context *to)
281281
}
282282

283283
if (previous->status == ZEND_FIBER_STATUS_DEAD) {
284-
zend_fiber_destroy_context(to);
284+
zend_fiber_destroy_context(previous);
285285
}
286286

287287
return previous;

0 commit comments

Comments
 (0)