From 423a0f65b0356c08a6ade378ebe3619b5d2b2f1b Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sun, 23 Aug 2020 22:15:28 -0500 Subject: [PATCH] Memory Leak Fix - HTTPRepository Reclaimed 1,797,012 bytes in 7599 blocks --- simgear/io/HTTPRepository.cxx | 3 --- 1 file changed, 3 deletions(-) diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index b6967acf..37e37014 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -581,9 +581,6 @@ private: if (typeData == "d") ci.type = ChildInfo::DirectoryType; if (typeData == "t") ci.type = ChildInfo::TarballType; - // REVIEW: Memory Leak - 447,264 bytes in 39 blocks are indirectly lost - // emplace_back is triggering an allocation which is leading to a leak - // Implies that ci is lacking a proper copy-ctor/assignment-op children.emplace_back(ci); children.back().path = absolutePath() / tokens[1]; if (tokens.size() > 3) {