diff mbox

Fix memory leaks in libstdc++ ABI tests

Message ID 20170710184300.GK15340@redhat.com
State New
Headers show

Commit Message

Jonathan Wakely July 10, 2017, 6:43 p.m. UTC
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 member of 'std'
>compiler exited with status 1

This should fix it, committed to trunk.
diff mbox

Patch

commit 889654aceb34ef6748d23c062325b6b45a93737c
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Mon Jul 10 19:35:56 2017 +0100

    Include missing header for std::free
    
    	* testsuite/abi/pr42230.cc: Add header for std::free.

diff --git a/libstdc++-v3/testsuite/abi/pr42230.cc b/libstdc++-v3/testsuite/abi/pr42230.cc
index 3b5a1f6..48156e4 100644
--- a/libstdc++-v3/testsuite/abi/pr42230.cc
+++ b/libstdc++-v3/testsuite/abi/pr42230.cc
@@ -3,6 +3,7 @@ 
 #include <cxxabi.h>
 #include <cassert>
 #include <cstddef>
+#include <cstdlib>
 
 int main()
 {