Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Memory Leak

Thanks. Will check it. Though this source file is not used at all currently.
Firewave

Memory Leak

According to cppcheck, there is a memory leak in the method TKeyGenerator::GetPublicKey() in core/K-e-y-G-e-n.cpp:

[c:\Documents and Settings\Administrator\My Documents\Downloads\winscp421source\core\K-e-y-G-e-n.cpp:342]: (error) Mismatching allocation and deallocation: buffer

Looking at the code confirms it as the memory is allocated as a memory, but not freed as such. Just used "delete []" instead.

PS: I had to change the name of the sourcefile as your spam filter forbids me to post it.