mirror of
https://github.com/bellard/quickjs.git
synced 2026-03-31 12:18:01 +00:00
removed memory leak (#441)
This commit is contained in:
parent
dc7af0ac42
commit
de4d3927b8
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user