From b5fb7e018c079c0a4bdec024b640ca03f2da1f26 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Thu, 10 Feb 2011 03:07:40 +0000 Subject: [PATCH] Run ~GRState() when reclaiming GRStates. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125262 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/GRState.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- 2.40.0