summaryrefslogtreecommitdiffstats
path: root/Python/bltinmodule.c
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1999-01-29 20:29:49 (GMT)
committerBarry Warsaw <barry@python.org>1999-01-29 20:29:49 (GMT)
commit7890203f491e9e967017676bf444b03c913ca8b5 (patch)
tree5b4699b887288c87b2cf82e6c4117a67384656ff /Python/bltinmodule.c
parent75930b31e25c4c45f2a2f7e3f568515de29c68f9 (diff)
downloadcpython-7890203f491e9e967017676bf444b03c913ca8b5.zip
cpython-7890203f491e9e967017676bf444b03c913ca8b5.tar.gz
cpython-7890203f491e9e967017676bf444b03c913ca8b5.tar.bz2
bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's
leaf_exc flag to zero otherwise the name leaks memory.
Diffstat (limited to 'Python/bltinmodule.c')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index b0d0648..7eb0f6a 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -2005,7 +2005,7 @@ bltin_exc[] = {
{"AttributeError", &PyExc_AttributeError, 1},
{"EOFError", &PyExc_EOFError, 1},
{"FloatingPointError", &PyExc_FloatingPointError, 1},
- {"EnvironmentError", &PyExc_EnvironmentError, 1},
+ {"EnvironmentError", &PyExc_EnvironmentError, 0},
{"IOError", &PyExc_IOError, 1},
{"OSError", &PyExc_OSError, 1},
{"ImportError", &PyExc_ImportError, 1},