summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-rw-r--r--Objects/object.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Objects/object.c b/Objects/object.c
index 072b50b..04e1ede 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -406,12 +406,13 @@ UNREF(op)
DELREF(op)
object *op;
{
+ destructor dealloc = op->ob_type->tp_dealloc;
UNREF(op);
#ifdef COUNT_ALLOCS
op->ob_type->tp_free++;
#endif
- (*(op)->ob_type->tp_dealloc)(op);
op->ob_type = NULL;
+ (*dealloc)(op);
}
printrefs(fp)