On Tue, May 16, 2000 at 09:45:20PM +1200, James Pullen wrote:

[...]
> Second one is more FYI. I've seen in the examples and the list archives 
> that ERR_remove_state(0) should be called to clean up some stuff at the 
> end. What I don't think anyone's mentioned is that it cleans up thread 
> specific data only for the thread which calls it.

ERR_remove_state() is one of those functions that already have a manual
page:

     ERR_remove_state - free a thread's error queue

     [...]

     void ERR_remove_state(unsigned long pid);

     [...]

     ERR_remove_state() frees the error queue associated with thread pid.
     If pid == 0, the current thread will have its error queue removed.

     Since error queue data structures are allocated automatically for new
     threads, they must be freed when threads are terminated in order to
     avoid memory leaks.

     [...]
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to