-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixups of memory leaks, double frees, etc #265
Conversation
…into feature_Deallocation
… it caused segfault in NS deallocation
… deleted in ~CSolver and NOT in child classes, eliminates repeated code and avoids double-frees
…alls to deconstructors are not valid (although they dont cause an error either)
…rface movement explicitly deleted, driver postprocessing commented out for now
Thanks Heather for dealing with this. This is especially helpful to find future memory leaks for example with valgrind. |
Agreed. This looks great, and thank you for the improvements (I know they were hard-earned). Merging in now... Things are really starting to look better on the memory front. Keep up the good work! |
Thanks for your comments! |
Hi, Thanks and Regards From: Thomas D. Economon [email protected] Agreed. This looks great, and thank you for the improvements (I know they were hard-earned). Merging in now... Things are really starting to look better on the memory front. Keep up the good work! You are receiving this because you are subscribed to this thread. |
Thanks for your post, it is good to know about this as our regression tests use relatively small sized problems. |
Several class objects are now explicitly deleted at the end of SU2_CFD, which provides a check that their deconstructors are properly implemented.
Some memory leaks may still exist, and future work will be needed for postprocessing routines implemented, but not currently called, in driver->Postprocessing.
For future development reference some common problems: