mirror of
https://github.com/bellard/quickjs.git
synced 2025-11-16 02:32:15 +03:00
removed memory leak (#441)
This commit is contained in:
@@ -40802,8 +40802,10 @@ done:
|
|||||||
goto exception;
|
goto exception;
|
||||||
args[0] = ret;
|
args[0] = ret;
|
||||||
res = JS_Invoke(ctx, arr, JS_ATOM_set, 1, args);
|
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;
|
goto exception;
|
||||||
|
}
|
||||||
JS_FreeValue(ctx, ret);
|
JS_FreeValue(ctx, ret);
|
||||||
ret = arr;
|
ret = arr;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user