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.
[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.