1*2175Sjp161948=pod 2*2175Sjp161948 3*2175Sjp161948=head1 NAME 4*2175Sjp161948 5*2175Sjp161948ERR_remove_state - free a thread's error queue 6*2175Sjp161948 7*2175Sjp161948=head1 SYNOPSIS 8*2175Sjp161948 9*2175Sjp161948 #include <openssl/err.h> 10*2175Sjp161948 11*2175Sjp161948 void ERR_remove_state(unsigned long pid); 12*2175Sjp161948 13*2175Sjp161948=head1 DESCRIPTION 14*2175Sjp161948 15*2175Sjp161948ERR_remove_state() frees the error queue associated with thread B<pid>. 16*2175Sjp161948If B<pid> == 0, the current thread will have its error queue removed. 17*2175Sjp161948 18*2175Sjp161948Since error queue data structures are allocated automatically for new 19*2175Sjp161948threads, they must be freed when threads are terminated in order to 20*2175Sjp161948avoid memory leaks. 21*2175Sjp161948 22*2175Sjp161948=head1 RETURN VALUE 23*2175Sjp161948 24*2175Sjp161948ERR_remove_state() returns no value. 25*2175Sjp161948 26*2175Sjp161948=head1 SEE ALSO 27*2175Sjp161948 28*2175Sjp161948L<err(3)|err(3)> 29*2175Sjp161948 30*2175Sjp161948=head1 HISTORY 31*2175Sjp161948 32*2175Sjp161948ERR_remove_state() is available in all versions of SSLeay and OpenSSL. 33*2175Sjp161948 34*2175Sjp161948=cut 35