From 8f76c2b4018a3d5c22ae7f826ee5f76cb9743e64 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 15:28:37 -0500 Subject: [PATCH] REVIEW: Memory Leak - SGPath::append() 212,955 bytes in 2,277 blocks are indirectly lost --- simgear/misc/sg_path.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simgear/misc/sg_path.cxx b/simgear/misc/sg_path.cxx index 48d6b638..d3adb53d 100644 --- a/simgear/misc/sg_path.cxx +++ b/simgear/misc/sg_path.cxx @@ -280,6 +280,10 @@ void SGPath::append( const string& p ) { path = p; } else { if ( p[0] != sgDirPathSep ) { + // REVIEW: Memory Leak - 212,955 bytes in 2,277 blocks are indirectly lost + // operator+= is triggering a leak within Qt5Qml. + // basic_string is doing _M_allocate & _M_mutate so it seems to be type conversion related + // This is being called via HTTPRepository:586... children.back().path = absolutePath() / tokens[1]; path += sgDirPathSep; } path += p;