Posted: 2009-05-21 10:23
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.
Location: Prague, Czechia
Thanks. Will check it. Though this source file is not used at all currently.
You can post new topics in this forum
And it's free!