diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-10-07 05:04:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-07 05:04:09 -0700 |
commit | 77b4a659b60536caf11c547332d30677f3e8f02e (patch) | |
tree | 266e19c1345dc5bce2ffd45044231df8f394ac98 | |
parent | 50b8d579421e621130806e62d6108f5f83d4be7f (diff) | |
download | cpython-git-77b4a659b60536caf11c547332d30677f3e8f02e.tar.gz |
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
(cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163)
Co-authored-by: Krishna Oza <krishoza15sep@gmail.com>
-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 e6448e4641..50be28fbcb 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; } |