From 53487ae7320fab235e8ac53adda21db95d2bbcf1 Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Sat, 22 Aug 2020 16:16:38 -0500 Subject: [PATCH] // REVIEW: Memory Leak - HTTPRepository copy-ctor 93,275 bytes in 2,275 blocks are indirectly lost --- simgear/io/HTTPRepository.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/simgear/io/HTTPRepository.cxx b/simgear/io/HTTPRepository.cxx index 66da1457..b3f6e71e 100644 --- a/simgear/io/HTTPRepository.cxx +++ b/simgear/io/HTTPRepository.cxx @@ -189,7 +189,9 @@ class HTTPDirectory { } - ChildInfo(const ChildInfo& other) = default; + // REVIEW: Memory Leak - 93,275 bytes in 2,275 blocks are indirectly lost + // Default copy-ctor is inappropriate when using dynamic memory allocation + ChildInfo(const ChildInfo& other) = default; void setSize(const std::string & sizeData) {