]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
SF #1499797, Fix for memory leak in WindowsError_str
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 4 Jun 2006 06:19:31 +0000 (06:19 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 4 Jun 2006 06:19:31 +0000 (06:19 +0000)
Objects/exceptions.c

index 3b79307406114f88dd58c9efcc4d4aa39e152139..369365bf99da6502b478351c9c28e031df5bb619 100644 (file)
@@ -851,7 +851,6 @@ WindowsError_str(PyWindowsErrorObject *self)
             PyTuple_SET_ITEM(tuple, 1, Py_None);
         }
 
-        Py_INCREF(repr);
         PyTuple_SET_ITEM(tuple, 2, repr);
 
         rtnval = PyString_Format(fmt, tuple);