From 626483721ae297ecb641a36b7bb39fc6d6490c82 Mon Sep 17 00:00:00 2001 From: Samuel Williams Date: Thu, 20 Jun 2019 11:56:06 +1200 Subject: Set `cfp` to null (along with vm_stack) in `rb_fiber_close`. --- cont.c | 1 + 1 file changed, 1 insertion(+) (limited to 'cont.c') diff --git a/cont.c b/cont.c index 0c8a68fe9a..c0f9c1c720 100644 --- a/cont.c +++ b/cont.c @@ -1794,6 +1794,7 @@ rb_fiber_close(rb_fiber_t *fib) } rb_ec_set_vm_stack(ec, NULL, 0); + ec->cfp = NULL; #if !FIBER_USE_NATIVE /* should not mark machine stack any more */ -- cgit v1.2.3