Python Forum
Memory leak in Py_Initialize on Windows
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Memory leak in Py_Initialize on Windows
#1
The following simple program shows a lot of memory leaks in Py_Initialize (python 3.7.3) on windows:

int main(int argc, char** argv)
{
//wchar_t *program = Py_DecodeLocale(argv[0], NULL);
//Py_SetProgramName(program);
Py_Initialize();
std::cout << "Py_IsInitialized returned " << Py_IsInitialized() << std::endl;
Py_FinalizeEx();
// PyMem_RawFree(program);
_CrtDumpMemoryLeaks();
}

I can provide the visual studio 2017 project instrumented to track the leaks but don't know where to post it.
Reply


Messages In This Thread
Memory leak in Py_Initialize on Windows - by roland - May-02-2019, 11:10 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020