>On Thu, 25 Mar 1999, Roger Chaplin wrote:
>
>> I've written a hack that leaks memory. It uses MemPtrNew to allocate the
>> memory, but never frees it. I've fixed the memory leak, but I had the
>> leaky app installed on my PalmIII and consequently leaked quite a bit of
>> memory.
>>
>> My question is: when I delete the offending app, does the OS also find
>> and free the memory that it had allocated but never freed?
>
>That's odd... My recollection is that the OS would automatically free any
>heap allocations made by a program when that program exits -- there
>shouldn't be anything left by the time the program is deleted.

This is true for an application, but is it also true for a hack?

Regards,
Ben Flaumenhaft



Reply via email to