Sunday, 11 August 2013

Memory leaks in python

Memory leaks in python

I use bounds checker to find memory leaks in our project. The result shows
most leaks are located in python31_d.dll. So I make a test code like
include "python.h"
Int main()
{
Py_Initialized();
Py_Finalized();
Return 0;
}
And run bounds checker again and got nearly 2M memory leaks!!!! For some
reason, our project has to initial python interpreter several times, I
can't just initial python just one time So my question:
does python have memory leaks issues?
How can I avoid leaks in server project using python embedded in c++?
Does bounds checker give precise report?

No comments:

Post a Comment