rearranged code in debugging version of DELREF to avoid touching data

after it has been freed.
This commit is contained in:
Guido van Rossum 1994-09-07 14:36:45 +00:00
parent c6cf1dd317
commit 9776adf565

View file

@ -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)