159191Skris=pod
259191Skris
359191Skris=head1 NAME
459191Skris
559191SkrisERR_remove_state - free a thread's error queue
659191Skris
759191Skris=head1 SYNOPSIS
859191Skris
959191Skris #include <openssl/err.h>
1059191Skris
1159191Skris void ERR_remove_state(unsigned long pid);
1259191Skris
1359191Skris=head1 DESCRIPTION
1459191Skris
1559191SkrisERR_remove_state() frees the error queue associated with thread B<pid>.
1659191SkrisIf B<pid> == 0, the current thread will have its error queue removed.
1759191Skris
1859191SkrisSince error queue data structures are allocated automatically for new
1968651Skristhreads, they must be freed when threads are terminated in order to
2059191Skrisavoid memory leaks.
2159191Skris
2259191Skris=head1 RETURN VALUE
2359191Skris
2459191SkrisERR_remove_state() returns no value.
2559191Skris
2659191Skris=head1 SEE ALSO
2759191Skris
2859191SkrisL<err(3)|err(3)>
2959191Skris
3059191Skris=head1 HISTORY
3159191Skris
3259191SkrisERR_remove_state() is available in all versions of SSLeay and OpenSSL.
3359191Skris
3459191Skris=cut
35