]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (#140602)
authorSebastian Pipping <sebastian@pipping.org>
Sun, 26 Oct 2025 13:45:32 +0000 (14:45 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Oct 2025 13:45:32 +0000 (13:45 +0000)
commite34a5e33049ce845de646cf24a498766a2da3586
tree5a11ffdbb7ed8960ad021968ba60e72f8755359a
parent37827c17526b7d3e1275861a1207be71aef6b284
gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (#140602)

Ensure that the memory allocated for the content model
passed to `my_ElementDeclHandler` is freed in all error
paths.
Lib/test/test_pyexpat.py
Misc/NEWS.d/next/Library/2025-10-25-21-26-16.gh-issue-140593.OxlLc9.rst [new file with mode: 0644]
Modules/pyexpat.c