Memory leak in mesh creation from gml
Executing Tests/Data/Mechanics/Linear/Orthotropy/square_1e1_orthotropic_xyz.prj results in memory leaks:
==1348474==ERROR: LeakSanitizer: detected memory leaks
Direct leak of 768 byte(s) in 48 object(s) allocated from:
#0 0x55c66286dbf9 in operator new[](unsigned long) (/home/naumov/w/ogs/d/bin/ogs+0x1b6bf9)
#1 0x7fc1d2f00982 in MeshLib::LinearEdgeReturn::getEdge(MeshLib::Element const*, unsigned int) /home/naumov/w/ogs/s/MeshLib/Elements/EdgeReturn.cpp:24:24
#2 0x7fc1d2f5ca63 in MeshLib::TemplateElement<MeshLib::QuadRule4>::getEdge(unsigned int) const /home/naumov/w/ogs/s/MeshLib/Elements/TemplateElement.h:81:16
#3 0x7fc1d48e7b17 in MeshGeoToolsLib::BoundaryElementsAlongPolyline::BoundaryElementsAlongPolyline(MeshLib::Mesh const&, MeshGeoToolsLib::MeshNodeSearcher const&, GeoLib::Polyline const&) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsAlongPolyline.cpp:54:29
#4 0x7fc1d49655de in std::__debug::vector<MeshLib::Element*, std::allocator<MeshLib::Element*> > const& MeshGeoToolsLib::getBoundaryElements<MeshGeoToolsLib::BoundaryElementsAlongPolyline, GeoLib::Polyline>(std::__debug::vector<MeshGeoToolsLib::BoundaryElementsAlongPolyline*, std::allocator<MeshGeoToolsLib::BoundaryElementsAlongPolyline*> >&, std::function<GeoLib::Polyline (MeshGeoToolsLib::BoundaryElementsAlongPolyline const&)>, GeoLib::Polyline const&, MeshLib::Mesh const&, MeshGeoToolsLib::MeshNodeSearcher const&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsSearcher.cpp:73:17
#5 0x7fc1d494d881 in MeshGeoToolsLib::BoundaryElementsSearcher::getBoundaryElements(GeoLib::GeoObject const&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsSearcher.cpp:99:20
#6 0x7fc1d49aa735 in std::__debug::vector<std::unique_ptr<MeshLib::Mesh, std::default_delete<MeshLib::Mesh> >, std::allocator<std::unique_ptr<MeshLib::Mesh, std::default_delete<MeshLib::Mesh> > > > MeshGeoToolsLib::constructAdditionalMeshesFromGeometries<GeoLib::TemplateVec<GeoLib::Polyline> >(std::__debug::vector<GeoLib::TemplateVec<GeoLib::Polyline>*, std::allocator<GeoLib::TemplateVec<GeoLib::Polyline>*> > const&, MeshGeoToolsLib::BoundaryElementsSearcher&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp:66:47
#7 0x7fc1d49a61b3 in MeshGeoToolsLib::constructAdditionalMeshesFromGeoObjects(GeoLib::GEOObjects const&, MeshLib::Mesh const&, std::unique_ptr<MeshGeoToolsLib::SearchLength, std::default_delete<MeshGeoToolsLib::SearchLength> >, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp:104:32
#8 0x7fc1ec191e06 in (anonymous namespace)::readMeshes(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:212:13
#9 0x7fc1ec18cb67 in ProjectData::ProjectData(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:288:17
#10 0x55c6628749b9 in main /home/naumov/w/ogs/s/Applications/CLI/ogs.cpp:206:25
#11 0x7fc1c1bdcb24 in __libc_start_main (/lib/libc.so.6+0x27b24)
Direct leak of 288 byte(s) in 9 object(s) allocated from:
#0 0x55c66286dbf9 in operator new[](unsigned long) (/home/naumov/w/ogs/d/bin/ogs+0x1b6bf9)
#1 0x7fc1d2e532a5 in MeshLib::Element* MeshLib::detail::createElementWithSameNodeOrder<MeshLib::TemplateElement<MeshLib::QuadRule4> >(std::__debug::vector<MeshLib::Node*, std::allocator<MeshLib::Node*> > const&, vtkIdList*, unsigned long) /home/naumov/w/ogs/s/MeshLib/MeshGenerators/VtkMeshConverter.cpp:51:24
#2 0x7fc1d2e42859 in MeshLib::VtkMeshConverter::convertUnstructuredGrid(vtkUnstructuredGrid*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/MeshLib/MeshGenerators/VtkMeshConverter.cpp:110:24
#3 0x7fc1d2fe0e59 in MeshLib::IO::VtuInterface::readVTUFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/MeshLib/IO/VtkIO/VtuInterface.cpp:75:12
#4 0x7fc1d2fa2a7c in MeshLib::IO::readMeshFromFileSerial(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/MeshLib/IO/readMeshFromFile.cpp:78:16
#5 0x7fc1d2fa2e0d in MeshLib::IO::readMeshFromFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/MeshLib/IO/readMeshFromFile.cpp:64:12
#6 0x7fc1ec1952e2 in (anonymous namespace)::readSingleMesh(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:149:9
#7 0x7fc1ec191902 in (anonymous namespace)::readMeshes(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:198:26
#8 0x7fc1ec18cb67 in ProjectData::ProjectData(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:288:17
#9 0x55c6628749b9 in main /home/naumov/w/ogs/s/Applications/CLI/ogs.cpp:206:25
#10 0x7fc1c1bdcb24 in __libc_start_main (/lib/libc.so.6+0x27b24)
Direct leak of 96 byte(s) in 6 object(s) allocated from:
#0 0x55c66286dbf9 in operator new[](unsigned long) (/home/naumov/w/ogs/d/bin/ogs+0x1b6bf9)
#1 0x7fc1d48e4532 in MeshGeoToolsLib::BoundaryElementsAlongPolyline::modifyEdgeNodeOrdering(MeshLib::Element const&, GeoLib::Polyline const&, std::__debug::vector<unsigned long, std::allocator<unsigned long> > const&, std::__debug::vector<unsigned long, std::allocator<unsigned long> > const&) const /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsAlongPolyline.cpp:138:26
#2 0x7fc1d48e7d10 in MeshGeoToolsLib::BoundaryElementsAlongPolyline::BoundaryElementsAlongPolyline(MeshLib::Mesh const&, MeshGeoToolsLib::MeshNodeSearcher const&, GeoLib::Polyline const&) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsAlongPolyline.cpp:61:34
#3 0x7fc1d49655de in std::__debug::vector<MeshLib::Element*, std::allocator<MeshLib::Element*> > const& MeshGeoToolsLib::getBoundaryElements<MeshGeoToolsLib::BoundaryElementsAlongPolyline, GeoLib::Polyline>(std::__debug::vector<MeshGeoToolsLib::BoundaryElementsAlongPolyline*, std::allocator<MeshGeoToolsLib::BoundaryElementsAlongPolyline*> >&, std::function<GeoLib::Polyline (MeshGeoToolsLib::BoundaryElementsAlongPolyline const&)>, GeoLib::Polyline const&, MeshLib::Mesh const&, MeshGeoToolsLib::MeshNodeSearcher const&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsSearcher.cpp:73:17
#4 0x7fc1d494d881 in MeshGeoToolsLib::BoundaryElementsSearcher::getBoundaryElements(GeoLib::GeoObject const&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/BoundaryElementsSearcher.cpp:99:20
#5 0x7fc1d49aa735 in std::__debug::vector<std::unique_ptr<MeshLib::Mesh, std::default_delete<MeshLib::Mesh> >, std::allocator<std::unique_ptr<MeshLib::Mesh, std::default_delete<MeshLib::Mesh> > > > MeshGeoToolsLib::constructAdditionalMeshesFromGeometries<GeoLib::TemplateVec<GeoLib::Polyline> >(std::__debug::vector<GeoLib::TemplateVec<GeoLib::Polyline>*, std::allocator<GeoLib::TemplateVec<GeoLib::Polyline>*> > const&, MeshGeoToolsLib::BoundaryElementsSearcher&, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp:66:47
#6 0x7fc1d49a61b3 in MeshGeoToolsLib::constructAdditionalMeshesFromGeoObjects(GeoLib::GEOObjects const&, MeshLib::Mesh const&, std::unique_ptr<MeshGeoToolsLib::SearchLength, std::default_delete<MeshGeoToolsLib::SearchLength> >, bool) /home/naumov/w/ogs/s/MeshGeoToolsLib/ConstructMeshesFromGeometries.cpp:104:32
#7 0x7fc1ec191e06 in (anonymous namespace)::readMeshes(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:212:13
#8 0x7fc1ec18cb67 in ProjectData::ProjectData(BaseLib::ConfigTree const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) /home/naumov/w/ogs/s/Applications/ApplicationsLib/ProjectData.cpp:288:17
#9 0x55c6628749b9 in main /home/naumov/w/ogs/s/Applications/CLI/ogs.cpp:206:25
#10 0x7fc1c1bdcb24 in __libc_start_main (/lib/libc.so.6+0x27b24)