[Python-checkins] r69651 - python/branches/io-c/Modules/_textio.c
antoine.pitrou
python-checkins at python.org
Sun Feb 15 21:25:35 CET 2009
Author: antoine.pitrou
Date: Sun Feb 15 21:25:34 2009
New Revision: 69651
Log:
Fix a leak in TextIOWrapper.seek
Modified:
python/branches/io-c/Modules/_textio.c
Modified: python/branches/io-c/Modules/_textio.c
==============================================================================
--- python/branches/io-c/Modules/_textio.c (original)
+++ python/branches/io-c/Modules/_textio.c Sun Feb 15 21:25:34 2009
@@ -1833,6 +1833,7 @@
}
res = PyObject_CallMethod(self->buffer, "seek", "ii", 0, 2);
+ Py_XDECREF(cookieObj);
return res;
}
else if (whence != 0) {
More information about the Python-checkins
mailing list