summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 28360f4..0527537 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2745,8 +2745,9 @@ build_class(methods, bases, name)
callable, args);
Py_DECREF(args);
}
- if (callable != basetype)
+ if (callable != basetype) {
Py_DECREF(callable);
+ }
return newclass;
}
PyErr_SetString(PyExc_TypeError,