]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat...
authorSebastian Pipping <sebastian@pipping.org>
Sun, 26 Oct 2025 15:19:18 +0000 (16:19 +0100)
committerGitHub <noreply@github.com>
Sun, 26 Oct 2025 15:19:18 +0000 (15:19 +0000)
commit842c49b35432a5f0bcbe1145f0f8cea904249cd4
treefaa8811b8fe21c7c4c4413a34f0458c2ff87ca5c
parent30ee67b2e408fecc61ff20a001b93d85c9815838
[3.14] gh-140593: Fix a memory leak in function `my_ElementDeclHandler` of `pyexpat` (GH-140602) (#140629)

[3.14] 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