[Python-checkins] r68824 - python/branches/io-c/Modules/_textio.c
antoine.pitrou
python-checkins at python.org
Tue Jan 20 23:36:28 CET 2009
Author: antoine.pitrou
Date: Tue Jan 20 23:36:28 2009
New Revision: 68824
Log:
Fix two leaks
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 Tue Jan 20 23:36:28 2009
@@ -897,7 +897,9 @@
Py_CLEAR(self->decoder);
Py_CLEAR(self->readnl);
Py_CLEAR(self->decoded_chars);
+ Py_CLEAR(self->pending_bytes);
Py_CLEAR(self->snapshot);
+ Py_CLEAR(self->errors);
return 0;
}
@@ -921,7 +923,9 @@
Py_VISIT(self->decoder);
Py_VISIT(self->readnl);
Py_VISIT(self->decoded_chars);
+ Py_VISIT(self->pending_bytes);
Py_VISIT(self->snapshot);
+ Py_VISIT(self->errors);
Py_VISIT(self->dict);
return 0;
}
More information about the Python-checkins
mailing list