SF #1499797, Fix for memory leak in WindowsError_str

This commit is contained in:
Neal Norwitz 2006-06-04 06:19:31 +00:00
parent 3eeb17346c
commit 7a071939d9
1 changed files with 0 additions and 1 deletions

View File

@ -851,7 +851,6 @@ WindowsError_str(PyWindowsErrorObject *self)
PyTuple_SET_ITEM(tuple, 1, Py_None); PyTuple_SET_ITEM(tuple, 1, Py_None);
} }
Py_INCREF(repr);
PyTuple_SET_ITEM(tuple, 2, repr); PyTuple_SET_ITEM(tuple, 2, repr);
rtnval = PyString_Format(fmt, tuple); rtnval = PyString_Format(fmt, tuple);