mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #24268: Address some PEP 489 refleaks
- missing DECREF in PyModule_FromDefAndSpec2 - missing DECREF in PyType_FromSpecAndBases2 - missing DECREF in _testmultiphase module Patch by Petr Viktorin
This commit is contained in:
parent
d5cacbb1d9
commit
a48db2bc8b
3 changed files with 12 additions and 5 deletions
|
|
@ -262,6 +262,7 @@ createfunc_nonmodule(PyObject *spec, PyModuleDef *def)
|
|||
return NULL;
|
||||
}
|
||||
PyDict_SetItemString(dct, "three", three);
|
||||
Py_DECREF(three);
|
||||
|
||||
ns = _PyNamespace_New(dct);
|
||||
Py_DECREF(dct);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue