[issue6836] Mismatching use of memory APIs
Kristján Valur Jónsson
report at bugs.python.org
Fri Sep 4 15:23:41 CEST 2009
Kristján Valur Jónsson <kristjan at ccpgames.com> added the comment:
using the debugmalloc patch provided, I found only this one case when
running the testsuite.
Patch is provided. It is the simple solution of duplicating the string in
this case. A more cumbersome solution would be to allocate the "encoding"
using PyObject_MALLOC in the first place. But it doesn't seem the right
api for arbitrary strings, and it might involve much more work.
----------
Added file: http://bugs.python.org/file14829/parsetok.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6836>
_______________________________________
More information about the Python-bugs-list
mailing list