diff options
author | Barry Warsaw <barry@python.org> | 1997-09-18 03:44:38 +0000 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1997-09-18 03:44:38 +0000 |
commit | 0ce581b61639dda7ce73f94ce5dac7c227cefe49 (patch) | |
tree | 9ef51abb27342b8b4e0f460246c1f5568a3880a3 /Python/pythonrun.c | |
parent | 85b841943daea1f6e03d0271b5b003414a3a1ec2 (diff) | |
download | cpython-0ce581b61639dda7ce73f94ce5dac7c227cefe49.tar.gz |
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! :-)
Diffstat (limited to 'Python/pythonrun.c')
0 files changed, 0 insertions, 0 deletions