Skip to content

Commit ff9adeb

Browse files
Fabrice Bellardsaghul
authored andcommitted
removed memory leak in string padding (issue #274)
1 parent 05416bc commit ff9adeb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43889,7 +43889,7 @@ static JSValue js_string_pad(JSContext *ctx, JSValueConst this_val,
4388943889
}
4389043890
if (n > JS_STRING_LEN_MAX) {
4389143891
JS_ThrowRangeError(ctx, "invalid string length");
43892-
goto fail2;
43892+
goto fail3;
4389343893
}
4389443894
if (string_buffer_init(ctx, b, n))
4389543895
goto fail3;

0 commit comments

Comments
 (0)