Mercurial > cpython-lru_cache-weakref
diff Objects/tupleobject.c @ 13265:e8bb0d536633 legacy-trunk
Neil Schemenauer: small fixes for GC
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Sat, 01 Jul 2000 01:00:38 +0000 |
| parents | 87ee82e5c56d |
| children | 0f95c93f200b |
line wrap: on
line diff
--- a/Objects/tupleobject.c Sat Jul 01 00:51:51 2000 +0000 +++ b/Objects/tupleobject.c Sat Jul 01 01:00:38 2000 +0000 @@ -175,6 +175,7 @@ } #endif } + op = (PyTupleObject *) PyObject_AS_GC(op); PyObject_DEL(op); done: Py_TRASHCAN_SAFE_END(op) @@ -559,6 +560,7 @@ *pv = (PyObject *) sv; if (sv == NULL) { PyObject_GC_Init((PyObject *)v); + v = (PyTupleObject *) PyObject_AS_GC(v); PyObject_DEL(v); PyErr_NoMemory(); return -1; @@ -595,6 +597,7 @@ while (p) { q = p; p = (PyTupleObject *)(p->ob_item[0]); + q = (PyTupleObject *) PyObject_AS_GC(q); PyObject_DEL(q); } }
