Three memory leaks found

Giganews Newsgroups
Subject: Three memory leaks found
Posted by:  Graeme Geldenhuys (graem…@gmail.com)
Date: Thu, 28 Apr 2016

Hi,

I just started a new project that uses IMAP4 to talk to our mail
server. All it does so far is retrieve a list of mail folders, and when
you double click a folder it retrieves the messages in that folder.
That all works, but when I quite the application, I get 3 reported
memory leaks.

I'm using FPC 2.6.4 with Indy 10.6.2 (from repository) and my
application is compiled with the -gl compiler parameter which enables
the leak detection.

Anyway, just thought I would mention this. If I have the time later
I'll try and take a look and see if I can spot the issues.

=======================================
[bin (master)]$ ./mailmgr.exe -l
Heap dump by heaptrc unit
11152 memory blocks allocated : 3646169/3682712
11149 memory blocks freed    : 3646113/3682656
3 unfreed memory blocks : 56
True heap size : 1540096
True free heap : 1539552
Should be : 1539656
Call trace for block $0000000800AF4700 size 16
  $00000000006ED9F8 line 1180 of System/IdStack.pas
Call trace for block $0000000800AF4660 size 16
  $00000000006B9610 line 253 of Core/IdThreadSafe.pas
  $00000000006B6C3A line 730 of Core/IdThread.pas
Call trace for block $0000000800B00A40 size 24
  $00000000006B6C3A line 730 of Core/IdThread.pas
========================================

--
Regards,
  Graeme Geldenhuys

Replies