Skip to content

Commit 6071c55

Browse files
kasonyangsaghul
authored andcommitted
fix WeakMap memory leak
1 parent 4350a9f commit 6071c55

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickjs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57263,6 +57263,7 @@ static void reset_weak_ref(JSRuntime *rt, JSWeakRefRecord **first_weak_ref)
5726357263
assert(!mr->empty); /* no iterator on WeakMap/WeakSet */
5726457264
list_del(&mr->hash_link);
5726557265
list_del(&mr->link);
57266+
s->record_count--;
5726657267
break;
5726757268
case JS_WEAK_REF_KIND_WEAK_REF:
5726857269
wrd = wr->u.weak_ref_data;

0 commit comments

Comments
 (0)