incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <>
Subject [jira] Commented: (STDCXX-577) purify reports leaked memory in stocks example
Date Sat, 08 Dec 2007 02:20:43 GMT


Martin Sebor commented on STDCXX-577:

Thank you for the patch!

I'd like our examples to use the preincrement operator wherever possible -- it's more efficient
for non-trivial iterators such as those of  deque. Could you make this change and resubmit

> purify reports leaked memory in stocks example 
> -----------------------------------------------
>                 Key: STDCXX-577
>                 URL:
>             Project: C++ Standard Library
>          Issue Type: Improvement
>          Components: Examples
>    Affects Versions: 4.2.0
>            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.

View raw message