diff options
author | Eric Fiselier <eric@efcs.ca> | 2014-11-14 19:10:43 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2014-11-14 19:10:43 +0000 |
commit | 93f65c4d087491deb2cf245947df89541f92262b (patch) | |
tree | 445f05cfd5a87522c967e9630c6ce8e68aced0e1 /llvm/lib/DebugInfo/DWARFAcceleratorTable.cpp | |
parent | 1cbb971c2de43e0043119cc848080319d39b8306 (diff) | |
download | bcm5719-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