Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 97326 invoked from network); 5 Oct 2007 22:43:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2007 22:43:41 -0000 Received: (qmail 77651 invoked by uid 500); 5 Oct 2007 22:43:30 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 77584 invoked by uid 500); 5 Oct 2007 22:43:30 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 77570 invoked by uid 99); 5 Oct 2007 22:43:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 15:43:30 -0700 X-ASF-Spam-Status: No, hits=-98.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Oct 2007 22:43:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CFD2671422B for ; Fri, 5 Oct 2007 15:42:50 -0700 (PDT) Message-ID: <31807430.1191624170848.JavaMail.jira@brutus> Date: Fri, 5 Oct 2007 15:42:50 -0700 (PDT) From: "Travis Vitek (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-580) purify reports memory leaked by strstream example In-Reply-To: <12948779.1191542453409.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/STDCXX-580?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Travis Vitek updated STDCXX-580: -------------------------------- Attachment: (was: stdcxx-580.patch) > purify reports memory leaked by strstream example > -------------------------------------------------- > > Key: STDCXX-580 > URL: https://issues.apache.org/jira/browse/STDCXX-580 > Project: C++ Standard Library > Issue Type: Improvement > Components: Examples > Reporter: Travis Vitek > Assignee: Travis Vitek > Priority: Minor > Fix For: 4.2.1 > > Attachments: stdcxx-580.patch > > > The example calls inout.str() which calls freeze(). If the streams streambuf if frozen, the destructor is not allowed to free the memory [D.7.1.2 p8]. > **** Purify instrumented ./strstream (pid 21780) **** > Purify: Searching for all memory leaks... > Memory leaked: 128 bytes (1.15%); potentially leaked: 0 bytes (0%) > MLK: 128 bytes leaked at 0x40027788 > * This memory was allocated from: > malloc [rtlib.o] > __nWa__FuL [libCsup_v2.2] > operator new[](unsigned long) [rtlib.o] > std::strstreambuf::setbuf(char *,long) [strstream.cpp:294] > std::strstreambuf::overflow(int) [strstream.cpp:85] > std::basic_streambuf>::xsputn(const char *,long) [streambuf.cc:144] -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.