[fpc-pascal] Possible Memory Leak in TThread.Synchronize

Michael Van Canneyt michael at freepascal.org
Wed Jan 3 12:49:52 CET 2018

On Wed, 3 Jan 2018, Tony Whyman wrote:

> The line "Dispose(tmpentry);" also disposes of a SynchronizeEvent but, 
> unlike TThread.DoneSynchronizeEvent, there is no RtlEventDestroy.
> Am I correct in pointing the finger here for the memory leak?

I doubt it, since AFAIK the RTL event is a OS object, and as such is not allocated on the
heap ?


More information about the fpc-pascal mailing list