This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


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()
 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]