From: Нестеров Е. <zb...@ro...> - 2010-12-15 15:32:36
|
Hello! It seems that I have found a potential MemLeak. I post bug in tracker: https://sourceforge.net/tracker/?func=detail&aid=3137322&group_id=3180&atid=103180 and today found why. String decode( const char *encoding, const char *error="strict" ) { return Object( PyString_AsDecodedObject( ptr(), encoding, error ) ); } Py::Object must be owner of new reference, second attr of counstructor must be true: String decode( const char *encoding, const char *error="strict" ) { return Object( PyString_AsDecodedObject( ptr(), encoding, error ), true ); } What you think about this? -- Нестеров Евгений |