]> granicus.if.org Git - python/commitdiff
bpo-38391: Fixing a typo for Py_DECREF (GH-16616)
authorKrishna Oza <krishoza15sep@gmail.com>
Mon, 7 Oct 2019 11:57:45 +0000 (17:27 +0530)
committerXiang Zhang <angwerzx@126.com>
Mon, 7 Oct 2019 11:57:45 +0000 (19:57 +0800)
Doc/extending/newtypes_tutorial.rst

index 94ca747c7aeb850116e6f6c69abf5a97756af97f..b2c819c8582376f427664b155764811015014bf2 100644 (file)
@@ -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;
    }