Hi Axel,

I don't know if it helps you much, but since the FAQ is a bit cryptic it may
help. I've used...

ERR_remove_state() 

...at the end of each thread.

Plus...

CRYPTO_cleanup_all_ex_data()
CONF_modules_free()
ERR_free_strings()
EVP_cleanup()

... at the end of the application.

I have no leaks that I can detect when using 0.9.7g.

At the time I wrote my code I couldn't find any FAQ entry that worked along
the lines of "if you use function zzzz or function group xxxx, then you must
call yyyy to free underlying data". My app' isn't loading external engines
or doing anything fancy, so these are probably not a comprehensive list of
resource releasing functions.

Regards,

   Simon

- --
Simon Edwards 

-----Original Message-----
From: Amar Desai [mailto:[EMAIL PROTECTED]
Sent: 18 July 2005 16:59
To: openssl-users@openssl.org
Subject: Re: Investigating a leak


Yes, You need to call other functions as well.

-Amar

Axel Andersson wrote:

> Yes, thank you, indeed I have read that, and I am using  
> ERR_remove_state() at the end of the thread. Looks to me like the  
> other functions should be used before terminating the application,  
> not for per-thread cleanup, or did I misunderstand something?
>
> -- Axel
>
> ______________________________________________________________________
> OpenSSL Project                                 http://www.openssl.org
> User Support Mailing List                    openssl-users@openssl.org
> Automated List Manager                           [EMAIL PROTECTED]
>
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to