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 <1215368860.06.0.0616450486424.issue3305@psf.upfronthosting.co.za>
In-reply-to
Content
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().

Example:
>>> import _multibytecodec
>>> _multibytecodec.MultibyteStreamReader(None)
Erreur de segmentation (core dumped)
History
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: <1215368860.06.0.0616450486424.issue3305@psf.upfronthosting.co.za>
2008-07-06 18:27:38vstinnerlinkissue3305 messages
2008-07-06 18:27:38vstinnercreate