bpo-38391: Fixing a typo for Py_DECREF (GH-16616)

This commit is contained in:
Krishna Oza 2019-10-07 17:27:45 +05:30 committed by Xiang Zhang
parent b96145a6b5
commit 038503e08a
1 changed files with 1 additions and 1 deletions

View File

@ -182,7 +182,7 @@ set to *NULL*. ::
Py_INCREF(&CustomType);
if (PyModule_AddObject(m, "Custom", (PyObject *) &CustomType) < 0) {
Py_DECREF(&CustomType);
PY_DECREF(m);
Py_DECREF(m);
return NULL;
}