summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 87005f5..3297332 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -348,13 +348,15 @@ builtin_complex(self, args)
}
if (PyComplex_Check(r)) {
cr = ((PyComplexObject*)r)->cval;
- if (own_r)
+ if (own_r) {
Py_DECREF(r);
+ }
}
else {
tmp = (*nbr->nb_float)(r);
- if (own_r)
+ if (own_r) {
Py_DECREF(r);
+ }
if (tmp == NULL)
return NULL;
cr.real = PyFloat_AsDouble(tmp);