https://github.com/python/cpython/commit/92d56777a1edbbef48581178004c4835bc9fe41d
commit: 92d56777a1edbbef48581178004c4835bc9fe41d
branch: 3.14
author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com>
committer: lysnikolaou <lisandros...@gmail.com>
date: 2025-05-09T07:38:12Z
summary:

[3.14] gh-133581: Fix refleak in t-string AST unparsing (GH-133724) (#133731)

Co-authored-by: Jelle Zijlstra <jelle.zijls...@gmail.com>

files:
M Python/ast_unparse.c

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;
 

_______________________________________________
Python-checkins mailing list -- python-checkins@python.org
To unsubscribe send an email to python-checkins-le...@python.org
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: arch...@mail-archive.com

Reply via email to