]> granicus.if.org Git - clang/commit
[analyzer] Fix immutable map factory lifetime for partial taint.
authorArtem Dergachev <artem.dergachev@gmail.com>
Mon, 29 May 2017 18:54:02 +0000 (18:54 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Mon, 29 May 2017 18:54:02 +0000 (18:54 +0000)
commit7007fd8ccfb31283792a5ee1c94c590bf0792e96
tree1f87373a626b769a9dab79fe94104559c2a1c5fa
parenta4eb9edb23bacc35a06aa35156dfc9874adb2d56
[analyzer] Fix immutable map factory lifetime for partial taint.

This should fix the leaks found by asan buildbot in r304162.

Also don't store a reference to the factory with every map value,
which is the only difference between ImmutableMap and ImmutableMapRef.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@304170 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Core/PathSensitive/ProgramState.h
include/clang/StaticAnalyzer/Core/PathSensitive/TaintManager.h
lib/StaticAnalyzer/Core/ProgramState.cpp