Fix bugs detected by the address sanitizer by maxaehle · Pull Request #2212 · su2code/SU2

added 6 commits

February 14, 2024 14:16
In 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:54

pcarruscag

@jblueh

@jblueh

Fixes a leak involving Restart_Data.

@jblueh

@jblueh

pcarruscag

@jblueh

Co-authored-by: Pedro Gomes <38071223+pcarruscag@users.noreply.github.com>
This helps to avoid memory leaks and double frees from the
respective COptionActDisk instances, and allows to check that
identical marker lists were supplied.
…nto fix_addresssanitizer_findings

pcarruscag

@jblueh jblueh marked this pull request as ready for review

February 17, 2024 01:27

@jblueh jblueh deleted the fix_addresssanitizer_findings branch

February 17, 2024 01:28