diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-03-23 06:14:28 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-03-23 06:14:28 (GMT) |
commit | a5d7b748d9b4581d8c43f858be0bbdf377cd6d64 (patch) | |
tree | 20d250c7cfa6b01b42b19214f7f2a41eec86336b /Modules | |
parent | 28c62bbdb2545eddf04ba7e2f2daa0dcedbb6052 (diff) | |
download | cpython-a5d7b748d9b4581d8c43f858be0bbdf377cd6d64.zip cpython-a5d7b748d9b4581d8c43f858be0bbdf377cd6d64.tar.gz cpython-a5d7b748d9b4581d8c43f858be0bbdf377cd6d64.tar.bz2 |
Revert the 1.8 patch, since it's implicated in nasty blowups (see Pyhon-Dev).
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_weakref.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_weakref.c b/Modules/_weakref.c index 5bdab4d..399b4fe 100644 --- a/Modules/_weakref.c +++ b/Modules/_weakref.c @@ -59,7 +59,6 @@ clear_weakref(PyWeakReference *self) if (self->wr_object != Py_None) { PyWeakReference **list = GET_WEAKREFS_LISTPTR(self->wr_object); - PyObject_GC_Fini((PyObject *)self); if (*list == self) *list = self->wr_next; self->wr_object = Py_None; @@ -79,6 +78,7 @@ static void weakref_dealloc(PyWeakReference *self) { clear_weakref(self); + PyObject_GC_Fini((PyObject *)self); self->wr_next = free_list; free_list = self; } |