diff options
author | Krishna Oza <krishoza15sep@gmail.com> | 2019-10-07 17:27:45 +0530 |
---|---|---|
committer | Xiang Zhang <angwerzx@126.com> | 2019-10-07 19:57:45 +0800 |
commit | 038503e08ac5b10601b95d5adc2c2cab7be10163 (patch) | |
tree | dbc4bb63b04aed01bb5fbd29c69a3213fce01b6a /Doc/extending | |
parent | b96145a6b5d89599ebccd2111d93f5670ddae840 (diff) | |
download | cpython-git-038503e08ac5b10601b95d5adc2c2cab7be10163.tar.gz |
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
Diffstat (limited to 'Doc/extending')
-rw-r--r-- | Doc/extending/newtypes_tutorial.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst index 94ca747c7a..b2c819c858 100644 --- a/Doc/extending/newtypes_tutorial.rst +++ b/Doc/extending/newtypes_tutorial.rst @@ -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; } |