diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-08-13 03:10:52 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-08-13 03:10:52 +0000 |
| commit | 3f91f037a7e025c5934cc50a35d858744db3cad5 (patch) | |
| tree | a0488dbc9869fbba5125058929db9823bdd6eb41 /clang/lib | |
| parent | 97387e6615c7e8fe8a941b2af4bfa6c5bdc5e5a9 (diff) | |
| download | bcm5719-llvm-3f91f037a7e025c5934cc50a35d858744db3cad5.tar.gz bcm5719-llvm-3f91f037a7e025c5934cc50a35d858744db3cad5.zip | |
Fix memory leak found by Sam Bishop: delete WList in the dstor of GRCoreEngineImpl.
llvm-svn: 54714
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/GRCoreEngine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/Analysis/GRCoreEngine.cpp b/clang/lib/Analysis/GRCoreEngine.cpp index 548c4bf161c..1c64c28c37d 100644 --- a/clang/lib/Analysis/GRCoreEngine.cpp +++ b/clang/lib/Analysis/GRCoreEngine.cpp @@ -156,6 +156,9 @@ void GRCoreEngineImpl::HandleBlockEntrance(const BlockEntrance& L, HandleBlockExit(L.getBlock(), Pred); } +GRCoreEngineImpl::~GRCoreEngineImpl() { + delete WList; +} void GRCoreEngineImpl::HandleBlockExit(CFGBlock * B, ExplodedNodeImpl* Pred) { |

