#35 Memory leak with Py::String decode

open
nobody
None
5
2010-12-14
2010-12-14
ZByte
No

getting func - "new_style_class_func_noargs" from your example code and replace some code like this :
Py::Object new_style_class_func_noargs( void )
{
Py::String s = " ";
s = s.decode("cp1251");
return Py::None();
}
PYCXX_NOARGS_METHOD_DECL( new_style_class, new_style_class_func_noargs )

and later test simple like :

while 1:
new_style_class.func_noargs()

we found mem leak on win and linux platforms, please help us.

Discussion

  • ZByte
    ZByte
    2010-12-14

    version 6.2.2