Re: [openssl-dev] [openssl.org #4704] Memory leak in rsa_new/rsa_free

2016-10-17 Thread Martin Simmons
I think your problem (and the stack overflow) is caused by using "CALLBACK" in the 3 function typedefs. Try using __cdecl instead of CALLBACK. __Martin > On Tue, 11 Oct 2016 16:15:24 +, Simone Sgualdini via RT said: > > > Hi, > > > I'm writing a c++ server application that calls thou

[openssl-dev] [openssl.org #4704] Memory leak in rsa_new/rsa_free

2016-10-11 Thread Simone Sgualdini via RT
Hi, I'm writing a c++ server application that calls thounsands of times per hour the rsa_new() and rsa_free() openssl functions. After debugging a lot I discovered that "sometimes" (I'm not able to tell a precise number) the rsa_free does not release properly the memory allocated by the rsa_ne