26 Aug
2005
26 Aug
'05
8:45 p.m.
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.