Jul-16-2020, 05:15 AM
(Jul-15-2020, 10:02 PM)Gribouillis Wrote: I don't know why there is a memory leak, but normal C programs callPy_Initialize()
andPy_Finalize()
only once. Why would anyone want to call them in a loop?
I've test on OS X 10.15 with python 3.8.3, there is a memory leak.
Do you mean that I should not using Py_Initialize and Py_Finalize in C function? so that I should not use them multi times?