Memory leaks when embedding python (debug-version) ?

Michael Hudson mwh at python.net
Fri Jun 7 10:20:27 EDT 2002


Sarah_L at gmx.net (Sarah Mayer) writes:

> Hi,
> maybe someone could help me,
> 
> I just embedded python 2.2.1 into a dll , 
> 
> Program looks like:
> 
> MyClass::MyClass()
> {
>     Py_Initialize();
>     Py_Finalize();
> }
> 
> 
> and after the program finishes I get a lot of memory-leaks.
> What is missing ???

The interned string dict?  There's some call for getting rid of that,
but I can't remember it off hand.

Cheers,
M.

-- 
  If you're talking "useful", I'm not your bot.
                                            -- Tim Peters, 08 Nov 2001



More information about the Python-list mailing list