diff options
author | Walter Dörwald <walter@livinglogic.de> | 2003-08-14 20:59:07 +0000 |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2003-08-14 20:59:07 +0000 |
commit | 7f2d4cb0dd56a8a40d61c23d3748e82d4fffc273 (patch) | |
tree | 5be80d647ba8c99a0b33aeb637f500fc827d8b6d /Python/exceptions.c | |
parent | 871c9a1f3bdf5c6a63a4a5c52ee8108082cf3369 (diff) | |
download | cpython-7f2d4cb0dd56a8a40d61c23d3748e82d4fffc273.tar.gz |
Fix refcount leak in the UnicodeError constructor:
When parsing the constructor arguments failed, a
reference to the argument tuple was leaked.
Diffstat (limited to 'Python/exceptions.c')
-rw-r--r-- | Python/exceptions.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/exceptions.c b/Python/exceptions.c index da78f2b19d..d489aa6efb 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; |