From: Neal Norwitz Date: Sun, 4 Jun 2006 06:19:31 +0000 (+0000) Subject: SF #1499797, Fix for memory leak in WindowsError_str X-Git-Tag: v2.5b1~273 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7a071939d96702e13c377a5e7f87df7bf20391e5;p=thirdparty%2FPython%2Fcpython.git SF #1499797, Fix for memory leak in WindowsError_str --- diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 3b7930740611..369365bf99da 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -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);