public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: clemens@thf.ath.cx To: gcc-gnats@gcc.gnu.org Subject: c++/6246: gcc generates code that memleaks Date: Wed, 10 Apr 2002 03:36:00 -0000 [thread overview] Message-ID: <20020410102826.1279.qmail@sources.redhat.com> (raw) >Number: 6246 >Category: c++ >Synopsis: gcc generates code that memleaks >Confidential: no >Severity: critical >Priority: medium >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Apr 10 03:36:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: thf >Release: 2.0.95 >Organization: >Environment: linux 2.4.17 glibc 2.2.4 dual celeron@433MHz >Description: testprogramm leaks 100bytes on each iteration depending on the location of "strstream str" declaration. >How-To-Repeat: #include <strstream> #include <string> #include <unistd.h> static string *buf = NULL; int main(int argc, char **argv) { // strstream str; while (1) { strstream str; buf = new string(); str << 1; *buf += str.str(); sleep(1); delete (buf); } return (0); } >Fix: >Release-Note: >Audit-Trail: >Unformatted:
reply other threads:[~2002-04-10 10:36 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20020410102826.1279.qmail@sources.redhat.com \ --to=clemens@thf.ath.cx \ --cc=gcc-gnats@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).