diff --git a/clang/lib/StaticAnalyzer/Core/GRState.cpp b/clang/lib/StaticAnalyzer/Core/GRState.cpp index e33c501b3c23..5fddcec94c63 100644 --- a/clang/lib/StaticAnalyzer/Core/GRState.cpp +++ b/clang/lib/StaticAnalyzer/Core/GRState.cpp @@ -293,6 +293,7 @@ void GRStateManager::recycleUnusedStates() { continue; StateSet.RemoveNode(state); freeStates.push_back(state); + state->~GRState(); } recentlyAllocatedStates.clear(); }