summaryrefslogtreecommitdiff
path: root/Objects/moduleobject.c
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2015-05-24 01:03:46 +1000
committerNick Coghlan <ncoghlan@gmail.com>2015-05-24 01:03:46 +1000
commita48db2bc8b882e887fbe8a84b31828d8491dd877 (patch)
tree6c23d36fde01e8961bac1d24d6a87334b7c4f465 /Objects/moduleobject.c
parentd5cacbb1d9c3edc02bf0ba01702e7c06da5bc318 (diff)
downloadcpython-git-a48db2bc8b882e887fbe8a84b31828d8491dd877.tar.gz
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 'Objects/moduleobject.c')
-rw-r--r--Objects/moduleobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c
index 7a86a5b36f..7b41b0b6c4 100644
--- a/Objects/moduleobject.c
+++ b/Objects/moduleobject.c
@@ -311,6 +311,7 @@ PyModule_FromDefAndSpec2(struct PyModuleDef* def, PyObject *spec, int module_api
}
}
+ Py_DECREF(nameobj);
return m;
error: