Compare commits

...

2 Commits

Author SHA1 Message Date
Fabrice Bellard
de4d3927b8 removed memory leak (#441) 2025-09-18 10:42:13 +02:00
Fabrice Bellard
dc7af0ac42 updated release.sh 2025-09-18 10:28:33 +02:00
2 changed files with 4 additions and 2 deletions

View File

@ -40802,8 +40802,10 @@ done:
goto exception;
args[0] = ret;
res = JS_Invoke(ctx, arr, JS_ATOM_set, 1, args);
if (check_exception_free(ctx, res))
if (check_exception_free(ctx, res)) {
JS_FreeValue(ctx, arr);
goto exception;
}
JS_FreeValue(ctx, ret);
ret = arr;
}

View File

@ -174,7 +174,7 @@ cp Makefile VERSION TODO Changelog readme.txt LICENSE \
cp tests/*.js tests/*.patch tests/bjson.c $outdir/tests
cp examples/*.js examples/*.c $outdir/examples
cp examples/*.js examples/*.c examples/*.json $outdir/examples
cp doc/quickjs.texi doc/quickjs.pdf doc/quickjs.html \
$outdir/doc