summaryrefslogtreecommitdiffstats
path: root/Objects/funcobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/funcobject.c')
-rw-r--r--Objects/funcobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/funcobject.c b/Objects/funcobject.c
index e514eeb..1ba74c5 100644
--- a/Objects/funcobject.c
+++ b/Objects/funcobject.c
@@ -141,7 +141,7 @@ PyFunction_SetClosure(PyObject *op, PyObject *closure)
if (closure == Py_None)
closure = NULL;
else if (PyTuple_Check(closure)) {
- Py_XINCREF(closure);
+ Py_INCREF(closure);
}
else {
PyErr_Format(PyExc_SystemError,