This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2008-07-06.18:27:38
SpamBayes Score 0.056531213
Marked as misclassified No
Message-id <>
Functions mbstreamwriter_dealloc() and mbstreamreader_dealloc() of 
Modules/cjkcodecs/multibytecodec.c uses Py_DECREF() to free stream 
attribute memory, but this attribute may be NULL if MultibyteCodec or 
MultibyteStreamReader constructor fails.

Simple fix: use Py_XDECREF().

>>> import _multibytecodec
>>> _multibytecodec.MultibyteStreamReader(None)
Erreur de segmentation (core dumped)
Date User Action Args
2008-07-06 18:27:40vstinnersetspambayes_score: 0.0565312 -> 0.056531213
recipients: + vstinner
2008-07-06 18:27:40vstinnersetspambayes_score: 0.0565312 -> 0.0565312
messageid: <>
2008-07-06 18:27:38vstinnerlinkissue3305 messages
2008-07-06 18:27:38vstinnercreate