From: Barry Warsaw Date: Fri, 29 Jan 1999 20:29:49 +0000 (+0000) Subject: bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's X-Git-Tag: v1.5.2b2~208 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7890203f491e9e967017676bf444b03c913ca8b5;p=thirdparty%2FPython%2Fcpython.git bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's leaf_exc flag to zero otherwise the name leaks memory. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index b0d0648c0f0d..7eb0f6a3ea1b 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},