From 50bfe3511283217001842615a58c15448f433351 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 3 Apr 2002 14:07:32 +0000 Subject: [PATCH] The body of_PyObject_GC_UnTrack() should only be compiled #ifdef WITH_CYCLE_GC. (Neil pointed this out before the weekend, and I fixed it right away, but forgot to check it in.) --- Modules/gcmodule.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index b6c93a9c81ab..e3bb669d3615 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -819,9 +819,11 @@ _PyObject_GC_Track(PyObject *op) void _PyObject_GC_UnTrack(PyObject *op) { +#ifdef WITH_CYCLE_GC PyGC_Head *gc = AS_GC(op); if (gc->gc.gc_next != NULL) _PyObject_GC_UNTRACK(op); +#endif } PyObject * -- 2.47.3