[C++-sig] Possible memory leaks?
Ben Sizer
kylotan at gmail.com
Fri Jan 12 12:26:55 CET 2007
This is likely to be the first of several posts which I previously
made to comp.lang.python, but which were quietly ignored. :) I don't
use Boost, this is all just low-level stuff, but hopefully someone
will still be able to help.
Here's my test-case:
#include <python.h>
int main(int argc, char *argv[])
{
Py_Initialize(); Py_Finalize();
Py_Initialize(); Py_Finalize();
Py_Initialize(); Py_Finalize();
Py_Initialize(); Py_Finalize();
Py_Initialize(); Py_Finalize();
return 1;
}
Here's my output, with Python 2.5 built in debug mode on WinXP, no
modifications:
[7438 refs]
[7499 refs]
[7550 refs]
[7601 refs]
[7652 refs]
Is this normal? It doesn't look very promising to me. I may need to do
a lot of this since I need to run many isolated interpreters
sequentially during a long running process.
--
Ben Sizer
More information about the Cplusplus-sig
mailing list