Irit Katriel added the comment:
This is all sorted now:
iritkatriel@Irits-MBP cpython % grep "PyModule_AddObject(" Modules/pyexpat.c
if (PyModule_AddObject(mod, name, submodule) < 0) {
if (PyModule_AddObject(errors_module, "codes", codes_dict) < 0) {
if (PyModule_AddObject(errors_
Berker Peksag added the comment:
Some parts of the patch have already been applied into master:
* PySys_GetObject():
https://github.com/python/cpython/commit/7a5457b6878db61910c81017d10579edb7c91512
* PyDict_SetItem():
https://github.com/python/cpython/commit/3f9eee6eb4b25fe1926eaa5f00e0234
New submission from Christian Heimes:
Similar to #24011 and #24010 the pyexpat module's init function fails to check
some return values for NULL. The patch doesn't include proper reference
cleanups as most of the other parts of PyInit_pyexpat() don't cleanup on error,
too.
CID 982779 (#2 of 2