From 7890203f491e9e967017676bf444b03c913ca8b5 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Fri, 29 Jan 1999 20:29:49 +0000 Subject: bltin_exc[]: EnvironmentError is not a "leaf exception", so set it's leaf_exc flag to zero otherwise the name leaks memory. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}, -- cgit v0.12