]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-133581: Fix refleak in t-string AST unparsing (#133724)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Fri, 9 May 2025 07:10:52 +0000 (00:10 -0700)
committerGitHub <noreply@github.com>
Fri, 9 May 2025 07:10:52 +0000 (09:10 +0200)
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;