Hi
I'm *suffering* from the same memory leak. Bodo mention that a
reference is kept in global veriable but as I saw it is
x509_store_ctx_method declared as a static variable in x509_vfy.c,
is there a way to access it? Or to tell OpenSSL to free it? Am I
missig something?
The allocation occurrs between MemCheck_off() and
MemCheck_on(), so it could *escape* OpenSSL's memory leak
can't it?
Please help
Dror
>
> > I've been doing some memory leak checking on an OpenSSL app and
> > discovered that a memory leak occurs in SSL_CTX_new(). Stack trace
> > is below. The SSL_get_ex_data_X509_STORE_CTX_idx() function is used
> > to check for an error but internally allocates resources which
> > SSL_CTX_free() does not free up.
>
> True, this however is not a true memory leak because the reference to
> the memory blocks is kept in a global variable. This is memory used
> for assigning at run-time an index value used for certain internal
> structures.
>
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]