Skip to content

Commit fa706d5

Browse files
author
Fabrice Bellard
committed
Fix leak in BigInt unary plus (saghul)
1 parent ec83bd2 commit fa706d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

quickjs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13397,6 +13397,7 @@ static no_inline __exception int js_unary_arith_slow(JSContext *ctx,
1339713397
switch(op) {
1339813398
case OP_plus:
1339913399
JS_ThrowTypeError(ctx, "bigint argument with unary +");
13400+
JS_FreeValue(ctx, op1);
1340013401
goto exception;
1340113402
case OP_inc:
1340213403
case OP_dec:

0 commit comments

Comments
 (0)