[issue25698] The copy_reg module becomes unexpectedly empty in test_cpickle

Barry A. Warsaw report at bugs.python.org
Tue Dec 1 11:51:03 EST 2015


Barry A. Warsaw added the comment:

Well, one thing I noticed is that init_stuff() in cPickle.c can leak the copy_reg module object, if any of the subsequent PyObject_GetAttr*() calls fail.  They return -1 without decref'ing copyreg.  Probably not a horrible leak since it's probably rare, but it should be fixed on principle.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25698>
_______________________________________


More information about the Python-bugs-list mailing list