commit | 3f91f037a7e025c5934cc50a35d858744db3cad5 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Wed Aug 13 03:10:52 2008 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Wed Aug 13 03:10:52 2008 +0000 |
tree | a0488dbc9869fbba5125058929db9823bdd6eb41 | |
parent | 97387e6615c7e8fe8a941b2af4bfa6c5bdc5e5a9 [diff] [blame] |
Fix memory leak found by Sam Bishop: delete WList in the dstor of GRCoreEngineImpl. llvm-svn: 54714
diff --git a/clang/lib/Analysis/GRCoreEngine.cpp b/clang/lib/Analysis/GRCoreEngine.cpp index 548c4bf..1c64c28 100644 --- a/clang/lib/Analysis/GRCoreEngine.cpp +++ b/clang/lib/Analysis/GRCoreEngine.cpp
@@ -156,6 +156,9 @@ HandleBlockExit(L.getBlock(), Pred); } +GRCoreEngineImpl::~GRCoreEngineImpl() { + delete WList; +} void GRCoreEngineImpl::HandleBlockExit(CFGBlock * B, ExplodedNodeImpl* Pred) {