summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index b647f3b..78e2f37 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -264,6 +264,7 @@ builtin_filter(PyObject *self, PyObject *args)
if (j < len && PyList_SetSlice(result, j, len, NULL) < 0)
goto Fail_result_it;
+ Py_DECREF(it);
return result;
Fail_result_it: