Re: [PATCH] Fix memory leaks in libstdc++ ABI tests

2017-07-10 Thread Jonathan Wakely
On 10/07/17 14:32 -0400, David Edelsohn wrote: The memory leak cleanup has introduced a testsuite failure on AIX: /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/abi/pr42230.cc: In function 'int main()': /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/abi/pr42230.cc:15: error: 'free' is not a

Re: [PATCH] Fix memory leaks in libstdc++ ABI tests

2017-07-10 Thread David Edelsohn
The memory leak cleanup has introduced a testsuite failure on AIX: /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/abi/pr42230.cc: In function 'int main()': /nasfarm/edelsohn/src/src/libstdc++-v3/testsuite/abi/pr42230.cc:15: error: 'free' is not a member of 'std' compiler exited with status 1

[PATCH] Fix memory leaks in libstdc++ ABI tests

2017-07-06 Thread Jonathan Wakely
These tests don't bother to free memory before exit, but that means we get ASan errors for them. Fixed like so. * testsuite/abi/pr42230.cc: Free memory. * testsuite/util/testsuite_abi.cc (demangle): Return std::string instead of pointer that might need freeing. * t