summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-16 22:04:20 (GMT)
committerGeorg Brandl <georg@python.org>2008-07-16 22:04:20 (GMT)
commitb9b68ae7a5176605ec482420cd8030bc56b144e1 (patch)
treec22ec878ba350076a314d8026177ebdfcfb1cc7f /Modules
parent86cbf81b47d8eca31ade71f8d6b0653167ffd922 (diff)
downloadcpython-b9b68ae7a5176605ec482420cd8030bc56b144e1.zip
cpython-b9b68ae7a5176605ec482420cd8030bc56b144e1.tar.gz
cpython-b9b68ae7a5176605ec482420cd8030bc56b144e1.tar.bz2
#3305: self->stream can be NULL.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/cjkcodecs/multibytecodec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/cjkcodecs/multibytecodec.c b/Modules/cjkcodecs/multibytecodec.c
index a1b0ca9..2bd8b0d 100644
--- a/Modules/cjkcodecs/multibytecodec.c
+++ b/Modules/cjkcodecs/multibytecodec.c
@@ -1484,7 +1484,7 @@ mbstreamreader_dealloc(MultibyteStreamReaderObject *self)
{
PyObject_GC_UnTrack(self);
ERROR_DECREF(self->errors);
- Py_DECREF(self->stream);
+ Py_XDECREF(self->stream);
Py_TYPE(self)->tp_free(self);
}
@@ -1686,7 +1686,7 @@ mbstreamwriter_dealloc(MultibyteStreamWriterObject *self)
{
PyObject_GC_UnTrack(self);
ERROR_DECREF(self->errors);
- Py_DECREF(self->stream);
+ Py_XDECREF(self->stream);
Py_TYPE(self)->tp_free(self);
}