From e98147a8e553a7b653cd2154403f914c1589857e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 14 Aug 2003 20:59:07 +0000 Subject: Fix refcount leak in the UnicodeError constructor: When parsing the constructor arguments failed, a reference to the argument tuple was leaked. --- Python/exceptions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/exceptions.c b/Python/exceptions.c index da78f2b..d489aa6 100644 --- a/Python/exceptions.c +++ b/Python/exceptions.c @@ -1191,7 +1191,7 @@ UnicodeError__init__(PyObject *self, PyObject *args, PyTypeObject *objecttype) &PyInt_Type, &start, &PyInt_Type, &end, &PyString_Type, &reason)) - return NULL; + goto finally; if (PyObject_SetAttrString(self, "args", args)) goto finally; -- cgit v0.12