]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-133581: Fix refleak in t-string AST unparsing (GH-133724) (#133731)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 9 May 2025 07:38:12 +0000 (09:38 +0200)
committerGitHub <noreply@github.com>
Fri, 9 May 2025 07:38:12 +0000 (07:38 +0000)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Python/ast_unparse.c

index ae623e0b4171f812c1b51c1d414d4641183f3758..557c12cfda61ff5e9616b2aa06ebbdab9ca42283 100644 (file)
@@ -749,6 +749,7 @@ append_templatestr(PyUnicodeWriter *writer, expr_ty e)
             goto error;
         }
     }
+    _PyArena_Free(arena);
 
     return 0;