Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e7a0b commit d8953cbCopy full SHA for d8953cb
1 file changed
Objects/object.c
@@ -61,7 +61,7 @@ inc_count(tp)
61
typeobject *tp;
62
{
63
if (tp->tp_alloc == 0) {
64
- /* first time; hang in linked list */
+ /* first time; insert in linked list */
65
if (tp->tp_next != NULL) /* sanity check */
66
fatal("XXX inc_count sanity check");
67
tp->tp_next = type_list;
@@ -490,16 +490,16 @@ UNREF(op)
490
op->_ob_next->_ob_prev = op->_ob_prev;
491
op->_ob_prev->_ob_next = op->_ob_next;
492
op->_ob_next = op->_ob_prev = NULL;
493
+#ifdef COUNT_ALLOCS
494
+ op->ob_type->tp_free++;
495
+#endif
496
}
497
498
DELREF(op)
499
object *op;
500
501
destructor dealloc = op->ob_type->tp_dealloc;
502
UNREF(op);
-#ifdef COUNT_ALLOCS
- op->ob_type->tp_free++;
-#endif
503
op->ob_type = NULL;
504
(*dealloc)(op);
505
0 commit comments