Fix memory leaks in libstdc++ ABI tests
authorJonathan Wakely <jwakely@redhat.com>
Thu, 6 Jul 2017 12:42:46 +0000 (13:42 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Thu, 6 Jul 2017 12:42:46 +0000 (13:42 +0100)
commit4f7c2c7ff2374cb39386f627fa97e2363dd2f94d
treeed20d6711dcaa1ff2713b42a3424fcc860cd8f67
parent318c48e30402eadaeee86dee9486733678c5fef4
Fix memory leaks in libstdc++ ABI tests

* testsuite/abi/pr42230.cc: Free memory.
* testsuite/util/testsuite_abi.cc (demangle): Return std::string
instead of pointer that might need freeing.
* testsuite/util/testsuite_abi.h (demangle): Likewise.
* testsuite/util/testsuite_hooks.cc (verify_demangle): Free memory.

From-SVN: r250020
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/abi/pr42230.cc
libstdc++-v3/testsuite/util/testsuite_abi.cc
libstdc++-v3/testsuite/util/testsuite_abi.h
libstdc++-v3/testsuite/util/testsuite_hooks.cc