mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 21:58:12 +08:00
fix mem leak
This commit is contained in:
parent
6e2e68fd08
commit
181c5b2e85
@ -5556,6 +5556,10 @@ void __JS_FreeValueRT(JSRuntime *rt, JSValue v)
|
|||||||
if (rt->gc_phase == JS_GC_PHASE_NONE) {
|
if (rt->gc_phase == JS_GC_PHASE_NONE) {
|
||||||
free_zero_refcount(rt);
|
free_zero_refcount(rt);
|
||||||
}
|
}
|
||||||
|
} else if (p->mark == 0) {
|
||||||
|
p->mark = 1;
|
||||||
|
list_del(&p->link);
|
||||||
|
list_add_tail(&p->link, &rt->tmp_obj_list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user