]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
initerrors(): Eliminate circular reference which was causing a small
authorBarry Warsaw <barry@python.org>
Thu, 18 Sep 1997 03:44:38 +0000 (03:44 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 18 Sep 1997 03:44:38 +0000 (03:44 +0000)
commitb01a7fa5f8208fb5c767964e63b44f0a02814f62
treea9a5dd5b8bcbbf9574d207a35738947c73464f16
parent412cdc2284693c07a3ab7c812284b0a95ffa0724
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! :-)
Python/bltinmodule.c