]> granicus.if.org Git - clang/commit
Fix a leak found by LSan: ConsumedBlockInfo owns its StateMapsArray entries.
authorNico Weber <nicolasweber@gmx.de>
Tue, 6 May 2014 17:18:03 +0000 (17:18 +0000)
committerNico Weber <nicolasweber@gmx.de>
Tue, 6 May 2014 17:18:03 +0000 (17:18 +0000)
commitae8a33daa177532359f65794dea183846f5b8367
tree76a56a16bdef4a6d0ef12b91ab4ccda353147a8b
parent8304a54201c0c0b408fc70ec18baf9a2b6cc23d3
Fix a leak found by LSan: ConsumedBlockInfo owns its StateMapsArray entries.

(I tried converting StateMapsArray to a vector<unique_ptr> and changing the
types of getInfo() and addInfo() to take unique_ptrs.  This mostly worked,
except for the three-argument form of addInfo() which I found confusing enough
that I went with this simpler fix for now.)

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