Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
-
aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007]
-
Resource Leak
Description
The HP aCC 6.16 runtime on HP-UX/IPF leaks 16 bytes of memory:
$ cat x.cpp && aCC -AA -V x.cpp && ./a.out #include <stdio.h> #include <stdlib.h> #include <new> namespace std { } using namespace std; void* operator new (size_t n) throw (bad_alloc) { void* const ptr = malloc (n); fprintf (stderr, "operator new (%zu) ==> %p\n", n, ptr); return ptr; } void operator delete (void *ptr) throw () { fprintf (stderr, "operator delete (%p)\n", ptr); free (ptr); } void* operator new[] (size_t n) throw (bad_alloc) { void* const ptr = malloc (n); fprintf (stderr, "operator new[] (%zu) ==> %p\n", n, ptr); return ptr; } void operator delete[] (void *ptr) throw () { fprintf (stderr, "operator delete[] (%p)\n", ptr); free (ptr); } int main () { fprintf (stderr, "main\n"); } aCC: HP C/aC++ B3910B A.06.16 [Nov 26 2007] ld: 92453-07 linker ld HP Itanium(R) B.12.41 IPF/IPF operator new (16) ==> 40012460 main
Attachments
Issue Links
- relates to
-
STDCXX-818 [HP aCC 6] SIGABRT in 27.objects: test driver not initialized yet
- Resolved