Skip to content

Commit

Permalink
Remove overkill assert on potential memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsneed committed Nov 27, 2024
1 parent 93f36ac commit 9b8f4e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Sources/SubstrataQuickJS/quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1949,7 +1949,10 @@ void JS_FreeRuntime(JSRuntime *rt)
printf("Secondary object leaks: %d\n", count);
}
#endif
assert(list_empty(&rt->gc_obj_list));
// FIXME: This is a temporary fix. Preferrably this comes back,
// though it is a little ominous to have an assert force a crash over
// a potential (and small) memory leak.
//assert(list_empty(&rt->gc_obj_list));

/* free the classes */
for(i = 0; i < rt->class_count; i++) {
Expand Down

0 comments on commit 9b8f4e9

Please sign in to comment.