diff Python/exceptions.c @ 30152:0813b33610cc legacy-trunk

Fix refcount leak in the UnicodeError constructor: When parsing the constructor arguments failed, a reference to the argument tuple was leaked.
author Walter Dörwald <walter@livinglogic.de>
date Thu, 14 Aug 2003 20:59:07 +0000
parents f746d5690ad6
children 3b59fa5d25b1
line wrap: on
line diff
--- a/Python/exceptions.c	Thu Aug 14 20:37:34 2003 +0000
+++ b/Python/exceptions.c	Thu Aug 14 20:59:07 2003 +0000
@@ -1191,7 +1191,7 @@
 	&PyInt_Type, &start,
 	&PyInt_Type, &end,
 	&PyString_Type, &reason))
-	return NULL;
+	goto finally;
 
     if (PyObject_SetAttrString(self, "args", args))
 	goto finally;