Skip to content

Commit

Permalink
free IC in js_free_function_def
Browse files Browse the repository at this point in the history
  • Loading branch information
littledivy committed Nov 23, 2023
1 parent b16b435 commit 8fb5550
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions quickjs.c
Original file line number Diff line number Diff line change
Expand Up @@ -26815,6 +26815,9 @@ static void js_free_function_def(JSContext *ctx, JSFunctionDef *fd)
js_free(ctx, fd->label_slots);
js_free(ctx, fd->line_number_slots);

if (fd->ic)
free_ic(fd->ic);

for(i = 0; i < fd->cpool_count; i++) {
JS_FreeValue(ctx, fd->cpool[i]);
}
Expand Down

0 comments on commit 8fb5550

Please sign in to comment.