From 308ceffc6869e3c12665f1ffa68db09a70fb9b58 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 9 May 2025 00:10:52 -0700 Subject: [PATCH] gh-133581: Fix refleak in t-string AST unparsing (#133724) --- Python/ast_unparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index ae623e0b417..557c12cfda6 100644 --- a/Python/ast_unparse.c +++ b/Python/ast_unparse.c @@ -749,6 +749,7 @@ append_templatestr(PyUnicodeWriter *writer, expr_ty e) goto error; } } + _PyArena_Free(arena); return 0;