bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's

leaf_exc flag to zero otherwise the name leaks memory.
This commit is contained in:
Barry Warsaw 1999-01-29 20:29:49 +00:00
parent 75930b31e2
commit 7890203f49

View file

@ -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},