This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix memory leaks in libstdc++ ABI tests
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: David Edelsohn <dje dot gcc at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 10 Jul 2017 19:43:00 +0100
- Subject: Re: [PATCH] Fix memory leaks in libstdc++ ABI tests
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=jwakely at redhat dot com
- Dkim-filter: OpenDKIM Filter v2.11.0 mx1.redhat.com D75567D0C2
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com D75567D0C2
- References: <CAGWvny=r32Mq9Gj8Rq+N4ujzzWriL82QcaqV5YdaPUhZoaMu=w@mail.gmail.com>
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()
{