summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFAcceleratorTable.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2014-11-14 19:10:43 +0000
committerEric Fiselier <eric@efcs.ca>2014-11-14 19:10:43 +0000
commit93f65c4d087491deb2cf245947df89541f92262b (patch)
tree445f05cfd5a87522c967e9630c6ce8e68aced0e1 /llvm/lib/DebugInfo/DWARFAcceleratorTable.cpp
parent1cbb971c2de43e0043119cc848080319d39b8306 (diff)
downloadbcm5719-llvm-93f65c4d087491deb2cf245947df89541f92262b.tar.gz
bcm5719-llvm-93f65c4d087491deb2cf245947df89541f92262b.zip
[libcxx] Fix memory leak in strstream tests.
Summary: The strstream function `str()` sets `freeze(true)`. When `freeze` is true the destructor is not allowed to free any dynamically allocated memory. The memory leak causes ASAN to fail on these tests. To ensure memory is deallocated `strstream.freeze(false)` is called at the end of the tests. Reviewers: danalbert, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6261 llvm-svn: 222025
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFAcceleratorTable.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud