1
0
mirror of https://github.com/janet-lang/janet synced 2026-07-02 09:38:50 +00:00

Possible fix for #1772 (#1773)

This commit is contained in:
Samuel Martineau
2026-07-01 09:44:11 -04:00
committed by GitHub
parent b070f95180
commit c0b32d4e37
+2
View File
@@ -336,6 +336,8 @@ static void janet_deinit_block(JanetGCObject *mem) {
if (f->ev_state && !(f->flags & JANET_FIBER_EV_FLAG_IN_FLIGHT)) {
janet_ev_dec_refcount();
janet_free(f->ev_state);
} else if (f->gc.flags & JANET_FIBER_EV_FLAG_SUSPENDED) {
janet_ev_dec_refcount();
}
#endif
janet_free(f->data);