From f0a1f01cf0928b9b015ce3f4f8d329e667151ab7 Mon Sep 17 00:00:00 2001 From: Krishna Oza Date: Mon, 7 Oct 2019 17:27:45 +0530 Subject: [PATCH] bpo-38391: Fixing a typo for Py_DECREF (GH-16616) (cherry picked from commit 038503e08ac5b10601b95d5adc2c2cab7be10163) Co-authored-by: Krishna Oza --- Doc/extending/newtypes_tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/extending/newtypes_tutorial.rst b/Doc/extending/newtypes_tutorial.rst index 94ca747c7aeb85..b2c819c8582376 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; }