diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2014-04-17 15:23:50 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2014-04-17 15:23:50 +0000 |
commit | ed5aced64ef601411e400d8bb89e4dde4b7820a7 (patch) | |
tree | 6ec06e43341dc34f78f4f507a3686f1f86070fb1 /clang/lib/Analysis/ThreadSafetyCommon.cpp | |
parent | 664b1e2f9b5b97c31a732888635e8174bc717041 (diff) | |
download | llvm-ed5aced64ef601411e400d8bb89e4dde4b7820a7.zip llvm-ed5aced64ef601411e400d8bb89e4dde4b7820a7.tar.gz llvm-ed5aced64ef601411e400d8bb89e4dde4b7820a7.tar.bz2 |
Since the object is new'ed in the enterCFG function, now deleting in the exitCFG function instead of the destructor to ensure proper pairing. This allows reuse of the builder without creating a memory leak.
llvm-svn: 206471
Diffstat (limited to 'clang/lib/Analysis/ThreadSafetyCommon.cpp')
-rw-r--r-- | clang/lib/Analysis/ThreadSafetyCommon.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/ThreadSafetyCommon.cpp b/clang/lib/Analysis/ThreadSafetyCommon.cpp index 2c90b2a4..02c9e8d 100644 --- a/clang/lib/Analysis/ThreadSafetyCommon.cpp +++ b/clang/lib/Analysis/ThreadSafetyCommon.cpp @@ -597,6 +597,7 @@ void SExprBuilder::exitCFG(const CFGBlock *Last) { CurrentBlockID = 0; CurrentVarID = 0; CurrentArgIndex = 0; + delete CallCtx; } |