aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-02-10 03:07:40 +0000
committerTed Kremenek <kremenek@apple.com>2011-02-10 03:07:40 +0000
commitb5fb7e018c079c0a4bdec024b640ca03f2da1f26 (patch)
treed56f6297ddf959680f4ae948e4841ce851c13c1a
parente40b69de464bc695afcaf7ef9602ad727d77b981 (diff)
Run ~GRState() when reclaiming GRStates.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125262 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/StaticAnalyzer/Core/GRState.cpp1
1 files changed, 1 insertions, 0 deletions
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();
}