By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,772 Members | 937 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,772 IT Pros & Developers. It's quick & easy.

Ref count oddness with embedded Python... memory leak?

P: n/a
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.

--
Ben Sizer

Jan 11 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.