Fix bugs detected by the address sanitizer by maxaehle · Pull Request #2212 · su2code/SU2
added 6 commits
February 14, 2024 14:16In CPhysicalGeometry.cpp, instances of derived classes are delete'd via CMeshReaderFVM pointers. Without a virtual destructor, destructors of members added by these derived classes are not called. With respect to e.g. the std::vector members of CCGNSMeshReaderFVM, this leads to memory leaks.
Max Aehle and others added 4 commits
February 14, 2024 16:54This helps to avoid memory leaks and double frees from the respective COptionActDisk instances, and allows to check that identical marker lists were supplied.
jblueh
marked this pull request as ready for review
jblueh
deleted the
fix_addresssanitizer_findings
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters