possible memleak in 10.0.76

Giganews Newsgroups
Subject: possible memleak in 10.0.76
Posted by:  Pierre Axelsson (nospam@nospam.com)
Date: Thu, 6 Oct 2005

This is what memcheck says when uploading a file:
---
Leak #1 Instance of TIdIOHandlerStack
Size: 240
198 Occurences
call stack - 0 : Module IdFTP.pas Routine @Idftp@TIdFTP@Put Line 1754 Find
error: 004DFFE0
call stack - 1 : Module IdFTP.pas Routine @Idftp@TIdFTP@Put Line 1765 Find
error: 004E0077
call stack - 2 : Module IdFTP.pas Routine @Idftp@TIdFTP@Put Line 1782 Find
error: 004E010B
call stack - 3 : Module panthreading_with_mem_traffic_logging.pas Routine
@Panthreading_with_mem_traffic_logging@TFTPJobThread@work Line 449 Find
error: 0051E1A5
call stack - 4 : Module panthreading_with_mem_traffic_logging.pas Routine
@Panthreading_with_mem_traffic_logging@TFTPJobThread@Execute Line 248 Find
error: 0051D8EE
call stack - 5 : Module classes.pas Routine @Classes@ThreadProc Line 9763
Find error: 0042B7C1
call stack - 6 :  Routine @System@ThreadWrapper Find error: 00404E12
call stack - 7 : (no debug info) Find error: 77E6605F
call stack - 8 : (no debug info) Find error: FFFFFFFC
---

Dont know if it makes difference or not, but I create and free the TIdFTP
objects in-code, which means I also manually call CreateIOHandler. Probably
not because this occurs every time 'Put' is called - not everytime an TIdFTP
object is created.

/Pierre

Replies