Memory Leak

Advertisement

Firewave
Joined:
Posts:
8

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,226
Location:
Prague, Czechia

Re: Memory Leak

Thanks. Will check it. Though this source file is not used at all currently.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum