summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
diff options
context:
space:
mode:
authorCameron Desrochers <cameron@moodycamel.com>2019-10-09 18:27:33 +0000
committerCameron Desrochers <cameron@moodycamel.com>2019-10-09 18:27:33 +0000
commit89386daa9571add3bc30311dc0902f82a1148a4c (patch)
tree73b908fdaee2d992ac09ba5269509307dfb1b08c /lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
parent72c7c21dda99bf2a388255ea167914771704a6f9 (diff)
downloadbcm5719-llvm-89386daa9571add3bc30311dc0902f82a1148a4c.tar.gz
bcm5719-llvm-89386daa9571add3bc30311dc0902f82a1148a4c.zip
[LLDB] Fix for synthetic children memory leak
The lifetime of a ValueObject and all its derivative ValueObjects (children, clones, etc.) is managed by a ClusterManager. These objects are only destroyed when every shared pointer to any of the managed objects in the cluster is destroyed. This means that no object in the cluster can store a shared pointer to another object in the cluster without creating a memory leak of the entire cluster. However, some of the synthetic children front-end implementations do exactly this; this patch fixes that. Differential Revision: https://reviews.llvm.org/D68641 llvm-svn: 374195
Diffstat (limited to 'lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp')
-rw-r--r--lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp b/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
index 491cf048e45..62945bd3ce8 100644
--- a/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
+++ b/lldb/source/Plugins/Language/CPlusPlus/LibCxxVariant.cpp
@@ -184,7 +184,6 @@ public:
private:
size_t m_size = 0;
- ValueObjectSP m_base_sp;
};
} // namespace
OpenPOWER on IntegriCloud