This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author nqiang
Recipients nqiang
Date 2009-01-07.21:55:23
SpamBayes Score 0.11345735
Marked as misclassified No
Message-id <1231365332.46.0.804752973069.issue4872@psf.upfronthosting.co.za>
In-reply-to
Content
The following code will cause memory leak in debug mode using visual 
studio 2008/2005
Comment out either MFC related (CString s) or Python related PY_XX. 
Then there will be no memory leak.

#include <python.h>
#include <afx.h>


int _tmain(int argc, _TCHAR* argv[])
{
	Py_Initialize();
	Py_Finalize();
	CString	s;
	return 0;
}
History
Date User Action Args
2009-01-07 21:55:32nqiangsetrecipients: + nqiang
2009-01-07 21:55:32nqiangsetmessageid: <1231365332.46.0.804752973069.issue4872@psf.upfronthosting.co.za>
2009-01-07 21:55:31nqianglinkissue4872 messages
2009-01-07 21:55:29nqiangcreate