From: Ted Kremenek Date: Thu, 10 Feb 2011 03:07:40 +0000 (+0000) Subject: Run ~GRState() when reclaiming GRStates. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5fb7e018c079c0a4bdec024b640ca03f2da1f26;p=clang Run ~GRState() when reclaiming GRStates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125262 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Core/GRState.cpp b/lib/StaticAnalyzer/Core/GRState.cpp index e33c501b3c..5fddcec94c 100644 --- a/lib/StaticAnalyzer/Core/GRState.cpp +++ b/lib/StaticAnalyzer/Core/GRState.cpp @@ -293,6 +293,7 @@ void GRStateManager::recycleUnusedStates() { continue; StateSet.RemoveNode(state); freeStates.push_back(state); + state->~GRState(); } recentlyAllocatedStates.clear(); }