Summary: | 2-dimensions char array not deleted | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | NoZ <noz> |
Component: | [OLD] Development | Assignee: | Gentoo Toolchain Maintainers <toolchain> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | http://forums.gentoo.org/viewtopic-t-390588.html | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
NoZ
2005-10-12 13:17:25 UTC
my Debian chroot behaves the same as Gentoo ... tested gcc 3.3.x / 3.4.x / 4.0.x in both systems it could just be a cache feature of libstdc++ ... if you put it into a loop of delete/free, the memory usage stays constant while (1) { for (i = 0; i < SIZE; ++i) { hop[i] = new char[10]; strcpy(hop[i] , "hophophop"); } for (i = 0; i < SIZE; ++i) { delete[] hop[i]; } } Seems that's how it should appear. |