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.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
I would love to see a better way to solve this; however, I don't see one, given the specification for strstream