From: Guido van Rossum Date: Wed, 3 Apr 2002 14:07:32 +0000 (+0000) Subject: The body of_PyObject_GC_UnTrack() should only be compiled #ifdef X-Git-Tag: v2.2.1~30 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=50bfe3511283217001842615a58c15448f433351;p=thirdparty%2FPython%2Fcpython.git 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.) --- 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 *