]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat...
authorSebastian Pipping <sebastian@pipping.org>
Sun, 26 Oct 2025 15:22:20 +0000 (16:22 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Oct 2025 15:22:20 +0000 (15:22 +0000)
commit7abbf518399451e7349815e882259ef0a8242b3d
tree4984147a8a69a9bf52d70701c9a989095ff1cccd
parentd64b05b284edc956c1dc88b6d100ec9b90179399
[3.13] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (GH-140602) (#140630)

[3.13] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (GH-140602)

Ensure that the memory allocated for the content model
passed to `my_ElementDeclHandler` is freed in all error
paths.

(cherry picked from commit e34a5e33049ce845de646cf24a498766a2da3586)
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