summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/bltinmodule.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index d230261..df6b98b 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -409,6 +409,7 @@ builtin_complex(self, args)
return NULL;
r = PyEval_CallObject(f, args);
Py_DECREF(args);
+ Py_DECREF(f);
if (r == NULL)
return NULL;
own_r = 1;