incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (JIRA)" <j...@apache.org>
Subject [jira] Updated: (STDCXX-577) stocks example purify results indicate leaked memory
Date Thu, 04 Oct 2007 20:58:50 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Travis Vitek updated STDCXX-577:
--------------------------------

    Attachment: stdcxx-577.patch
                stocks.log

Attaching purify log and patch.

2007-10-04  Travis Vitek  <vitek@roguewave.com>

	STDCXX-577
	* stocks.h: Removed StockXchange destructor implementation.
	* stocks.cpp: Changed StockXchange destructor to deallocate memory.
	(main): Deallocate memory.

> stocks example purify results indicate leaked memory
> ----------------------------------------------------
>
>                 Key: STDCXX-577
>                 URL: https://issues.apache.org/jira/browse/STDCXX-577
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>            Reporter: Travis Vitek
>            Assignee: Travis Vitek
>             Fix For: 4.2.1
>
>         Attachments: stdcxx-577.patch, stocks.log
>
>
> It is pretty obvious from looking at the source that memory is being leaked. The destructor
for StockXchange doesn't deallocate memory allocated in StockXchange::add(), and the sl_pairs
allocated in main are never deallocated.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message