Python script calls an external C++ function (using ctypes). Memory leaks are possible when execution the C++ function.
Will all allocated memory (in C++ function) be automatically cleaned up after finishing of the Python script?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, It will all be returned to the OS once the python interpreter exits. This is true for all processes – nothing specific to python or c++.