From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Peter Geoghegan <peter(dot)geoghegan86(at)gmail(dot)com> |
Cc: | Guillaume Lelarge <guillaume(at)lelarge(dot)info>, Julius Tuskenis <julius(at)nsoft(dot)lt>, "pgadmin-support(at)postgresql(dot)org" <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: possible memory leak in Server Status window |
Date: | 2011-02-12 15:00:53 |
Message-ID: | AANLkTimK2GQXn=9j1bg0_+gHgFzejBrLjv0eUeQ8rkr_@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
On Saturday, February 12, 2011, Peter Geoghegan
<peter(dot)geoghegan86(at)gmail(dot)com> wrote:
> On 12 February 2011 14:22, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>> Note the lack of a delete - that's the point here; it's not needed
>> because as soon as the smart pointer goes out of scope, it's
>> destructor will delete foo. That means you don't have to remember to
>> include the delete in each of the many exit points of the code.
>>
>> See also http://en.wikipedia.org/wiki/Resource_Acquisition_Is_Initialization
>
> "Resource Acquisition is Initialization" is a terrible name.
Couldn't agree more.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2011-02-12 15:41:05 | Re: possible memory leak in Server Status window |
Previous Message | Peter Geoghegan | 2011-02-12 14:59:05 | Re: possible memory leak in Server Status window |