]> granicus.if.org Git - clang/commit
Since the object is new'ed in the enterCFG function, now deleting in the exitCFG...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 17 Apr 2014 15:23:50 +0000 (15:23 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 17 Apr 2014 15:23:50 +0000 (15:23 +0000)
commit1ae2588a1705dbf47551636e766d445be12797d4
treedc7da2bd0db51baf66881d014ea50f02191754a2
parent8fa1f062bd6f5a942acfcbef4146f7f496031fb2
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206471 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Analysis/Analyses/ThreadSafetyCommon.h
lib/Analysis/ThreadSafetyCommon.cpp