Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2005-08-26 15:45:15


Sohail Somani wrote:

>>> Any dynamically allocated memory that isn't freed is a Bad
>> Thing imho.
>>
>> Because?
>
> Was it forgotten? Was it intentional? If the assumption is it will
> always be freed, then there is no ambiguity.

Seems clearly intentional to me - the allocation is invoked by call_once and
is a textbook implementation of a thread safe singleton. A "this is not a
leak" comment may help.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net