diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-23 15:03:46 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2015-05-23 15:03:46 (GMT) |
commit | a48db2bc8b882e887fbe8a84b31828d8491dd877 (patch) | |
tree | 6c23d36fde01e8961bac1d24d6a87334b7c4f465 /Modules/_testmultiphase.c | |
parent | d5cacbb1d9c3edc02bf0ba01702e7c06da5bc318 (diff) | |
download | cpython-a48db2bc8b882e887fbe8a84b31828d8491dd877.zip cpython-a48db2bc8b882e887fbe8a84b31828d8491dd877.tar.gz cpython-a48db2bc8b882e887fbe8a84b31828d8491dd877.tar.bz2 |
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
Diffstat (limited to 'Modules/_testmultiphase.c')
-rw-r--r-- | Modules/_testmultiphase.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/_testmultiphase.c b/Modules/_testmultiphase.c index 3e8e5d5..0d50db2 100644 --- a/Modules/_testmultiphase.c +++ b/Modules/_testmultiphase.c @@ -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); |