From: Fabrice Bellard Date: Thu, 27 Mar 2025 13:43:25 +0000 (+0100) Subject: removed memory leak in string padding (issue #274) X-Git-Url: http://git.kaiwu.me/postgresql/log/contrib/postgres_fdw/static/gitweb.js?a=commitdiff_plain;h=e8cfe8fede99abe00bf677cc3c9c1a9de273a125;p=quickjs.git removed memory leak in string padding (issue #274) --- diff --git a/quickjs.c b/quickjs.c index 38687cf..946a743 100644 --- a/quickjs.c +++ b/quickjs.c @@ -41928,7 +41928,7 @@ static JSValue js_string_pad(JSContext *ctx, JSValueConst this_val, } if (n > JS_STRING_LEN_MAX) { JS_ThrowRangeError(ctx, "invalid string length"); - goto fail2; + goto fail3; } if (string_buffer_init(ctx, b, n)) goto fail3;