Thanks for the hint. I have tested my code with "valgrind". Everything seems to be fine...
Regards Vincent ------------------------------ Wei Dai <[EMAIL PROTECTED]> schrieb am 30.09.2007 00:45 > > See > http://www.nabble.com/Memory-leaks-in-constructor-tf3212448.html#a8921079. > > -------------------------------------------------- > From: "v.miethe" <[EMAIL PROTECTED]> > Sent: Saturday, September 29, 2007 5:08 AM > To: <[EMAIL PROTECTED]> > Subject: VCL Memory Leak - Why? > > > > > Hi, > > > > first some code... > > > > CryptoPP::RSA::PublicKey *pubKey = new CryptoPP::RSA::PublicKey; > > pubKey->->Initialize( rsa_n, rsa_e ); > > > > //vcl memory leak supposed here > > CryptoPP::RSAES_PKCS1v15_Encryptor rsa(*pubKey); > > > > rsa.Encrypt(); > > delete pubKey; //destructor > > > > > > gives me a memory leak with "Visual Leak Detector". > > Data: > > 63 6C 61 73 73 20 43 72 79 70 74 6F 50 50 3A 3A > > 52 53 41 46 75 6E 63 74 69 6F 6E 00 > > class.CryptoPP::RSAFunction..... > > > > Why? The code works fine. > > > > > > Regards > > v > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [EMAIL PROTECTED] More information about Crypto++ and this group is available at http://www.cryptopp.com. -~----------~----~----~----~------~----~------~--~---
