Skip to content

Commit

Permalink
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmoza authored and zhangyangyu committed Oct 7, 2019
1 parent b96145a commit 038503e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Doc/extending/newtypes_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 038503e

Please sign in to comment.