From 7057e79fe386ff2b68e057cad0fb44a7401f2853 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Thu, 8 May 2025 19:49:29 -0700 Subject: [PATCH] gh-133581: Fix refleak in AST unparsing --- Python/ast_unparse.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Python/ast_unparse.c b/Python/ast_unparse.c index ae623e0b4171f8..557c12cfda61ff 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;