[fpc-pascal] Memory leak

dhkblaszyk at zeelandnet.nl dhkblaszyk at zeelandnet.nl
Sun Dec 18 14:04:27 CET 2011


  

While dabbling with pointers, I came across a memleak for which I
don't understand why it happens. Hopefully someone can help me with it.


mytest^.name := Format('%s.%.3d', ['name', 1]); 

This assigns
'name.001' to the pointer variable but causes a memleak. If I assign the
same value as string constant no memleak occurs, so it must be something
related to format. 

Regards, Darius 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20111218/4dcf9c82/attachment.html>


More information about the fpc-pascal mailing list