diff options
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gcmodule.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index b3a688c..29d62bf 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -196,11 +196,9 @@ visit_decref(PyObject *op, void *data) * getting collected. That would be a waste of time, but wouldn't * cause an error. */ - if (op && PyObject_IS_GC(op)) { - if (IS_TRACKED(op)) { - AS_GC(op)->gc.gc_refs--; - } - } + assert(op != NULL); + if (PyObject_IS_GC(op)) + AS_GC(op)->gc.gc_refs--; return 0; } |