Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2005-04

patch for classes.inc: free items of InitHandlerList

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Vincent Snijders

Hi,

Attached patch frees the items of the InitHandlerList. The items are allocated in RegisterInitComponentHandler, but never seem to be freeed. Heaptrc showed a memleak, when you ran lazarus with the cgi package installed.

Regards,
Vincent

Reply by email

Vincent Snijders
to Vincent Snijders
Vincent Snijders wrote 7 lines
Hi, Attached patch frees the items of the InitHandlerList. The items are allocated in RegisterInitComponentHandler, but never seem to be freeed. Heaptrc showed a memleak, when you ran lazarus with the cgi package installed.

Further testing showed that the patch contained a bug. InitHandlerList might not be patch corrects also this case.

Sorry for the confusion.

Regards,
Vincent.

Reply by email

Florian Klaempfl
to Vincent Snijders
Vincent Snijders wrote 14 lines
Vincent Snijders wrote: > Hi, > > Attached patch frees the items of the InitHandlerList. The items are > allocated in RegisterInitComponentHandler, but never seem to be freeed. > Heaptrc showed a memleak, when you ran lazarus with the cgi package > installed. > Further testing showed that the patch contained a bug. InitHandlerList might not be patch corrects also this case. Sorry for the confusion.

Applied.

Reply by email