From: Krishna Oza Date: Mon, 7 Oct 2019 11:57:45 +0000 (+0530) Subject: bpo-38391: Fixing a typo for Py_DECREF (GH-16616) X-Git-Tag: v3.9.0a1~248 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=038503e08ac5b10601b95d5adc2c2cab7be10163;p=thirdparty%2FPython%2Fcpython.git bpo-38391: Fixing a typo for Py_DECREF (GH-16616) --- diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst index 94ca747c7aeb..b2c819c85823 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; }