Skip to content

Commit

Permalink
call js_std_free_handlers() in the code generated by qjsc (github issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabrice Bellard authored and andrjohns committed Dec 26, 2023
1 parent 7f918cb commit a2b4e9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,9 @@ endif

# examples
ifeq ($(CROSS_PREFIX),)
ifdef CONFIG_ASAN
PROGS+=
else
PROGS+=examples/hello examples/hello_module examples/test_fib
PROGS+=examples/hello
ifndef CONFIG_ASAN
PROGS+=examples/hello_module examples/test_fib
ifndef CONFIG_DARWIN
PROGS+=examples/fib.so examples/point.so
endif
Expand Down
1 change: 1 addition & 0 deletions qjsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,7 @@ static const char main_c_template1[] =

static const char main_c_template2[] =
" js_std_loop(ctx);\n"
" js_std_free_handlers(rt);\n"
" JS_FreeContext(ctx);\n"
" JS_FreeRuntime(rt);\n"
" return 0;\n"
Expand Down

0 comments on commit a2b4e9e

Please sign in to comment.