From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 7 Oct 2019 12:05:09 +0000 (-0700) Subject: bpo-38391: Fixing a typo for Py_DECREF (GH-16616) X-Git-Tag: v3.8.0~45 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=985ec986e864b670687b900a4d6ca977b4e9694d;p=python bpo-38391: Fixing a typo for Py_DECREF (GH-16616) (cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163) Co-authored-by: Krishna Oza --- 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; }