Mercurial > cpython-lru_cache-weakref
comparison Python/thread.c @ 6327:4b4775b49bfa legacy-trunk
initerrors(): Eliminate circular reference which was causing a small
but annoying memory leak. This was introduced when PyExc_Exception
was added; the loop above populating the PyExc_StandardError exception
tuple started at index 1 in bltin_exc, but PyExc_Exception was added
at index 0, so PyExc_StandardError was getting inserted in itself!
How else can a tuple include itself?!
Change the loop to start at index 2.
This was a *fun* one! :-)
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 18 Sep 1997 03:44:38 +0000 |
| parents | b5e51ae9f832 |
| children | 5e31d381fa47 |
comparison
equal
deleted
inserted
replaced
| 6326:b0183994021b | 6327:4b4775b49bfa |
|---|
