[Python-bugs-list] PRIVATE: interned->ma_table never free'd (PR#361)

cfandrich@8cs.com cfandrich@8cs.com
Fri, 16 Jun 2000 20:08:34 -0400 (EDT)


Full_Name: Christopher Fandrich
Version: 1.5.2
OS: Windows
Submission from: (NULL) (208.41.174.4)


I'm embedding Python in an application.  For now, all I'm doing is initializing
and finalizing Python.

When I run my app I get a memory leak of 12288 bytes.  The memory is malloc'ed
by dictresize() which is called by PyDict_SetItem() which is called by
PyString_InternInPlace().

For now, I've added 
    PyDict_Clear(interned);
    interned = NULL;
to PyString_Fini().  So far it works fine, but I don't know if it's safe to do
in the grand scheme of things.

-Chris