[fpc-pascal] Memory leak

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Sun Dec 18 16:20:41 CET 2011


  

On 18 dec '11, Jonas Maebe wrote: 

> If you use freemem or
reallocmem, then you will get a memory leak because freemem/reallocmem
do not finalize the memory before freeing it. You have to manually call
finalize() on the records inside that memory block prior to freeing them
via freemem/reallocmem. dispose on the other hand will finalize the
freed memory automatically.

I searched the documentation. Are finalize
and initialize documented at all? 

Regards, Darius 

  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111218/2492c1c1/attachment.html>


More information about the fpc-pascal mailing list