summaryrefslogtreecommitdiff
path: root/Objects/abstract.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index 20d241ddc6..98d2dd0078 100644
--- a/Objects/abstract.c
+++ b/Objects/abstract.c
@@ -836,6 +836,7 @@ done1:
}
/* And call it. */
result = PyObject_CallFunctionObjArgs(method, format_spec, NULL);
+ Py_DECREF(method);
}
if (result == NULL)