From 4d56487df97e9f9436cbeab8125a1124b3352e40 Mon Sep 17 00:00:00 2001 From: Fabrice Bellard Date: Tue, 13 Oct 2026 14:40:18 +0200 Subject: [PATCH] removed memory leak --- temporal/temporal.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/temporal/temporal.c b/temporal/temporal.c index a7c9a28..9542d1a 100644 --- a/temporal/temporal.c +++ b/temporal/temporal.c @@ -1771,6 +1771,8 @@ int ti_prepare_calendar_fields(JSContext *ctx, JSValueConst obj, JS_FreeCString(ctx, era_str); out->present_mask |= TI_FIELD_ERA; } + JS_FreeValue(ctx, v); + v = JS_UNDEFINED; } /* eraYear */ -- 2.47.3