There was an error while loading. Please reload this page.
1 parent b070f95 commit c0b32d4Copy full SHA for c0b32d4
1 file changed
src/core/gc.c
@@ -336,6 +336,8 @@ static void janet_deinit_block(JanetGCObject *mem) {
336
if (f->ev_state && !(f->flags & JANET_FIBER_EV_FLAG_IN_FLIGHT)) {
337
janet_ev_dec_refcount();
338
janet_free(f->ev_state);
339
+ } else if (f->gc.flags & JANET_FIBER_EV_FLAG_SUSPENDED) {
340
+ janet_ev_dec_refcount();
341
}
342
#endif
343
janet_free(f->data);
0 commit comments