Skip to content

Commit 68d4017

Browse files
committed
Fix leak in BigInt unary plus
1 parent aa79009 commit 68d4017

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
@@ -13752,6 +13752,7 @@ static no_inline __exception int js_unary_arith_slow(JSContext *ctx,
1375213752
switch(op) {
1375313753
case OP_plus:
1375413754
JS_ThrowTypeError(ctx, "bigint argument with unary +");
13755+
JS_FreeValue(ctx, op1);
1375513756
goto exception;
1375613757
case OP_inc:
1375713758
case OP_dec:

0 commit comments

Comments
 (0)