ERR_remove_state(3) OpenSSL ERR_remove_state(3) NNAAMMEE ERR_remove_thread_state, ERR_remove_state - free a thread's error queue SSYYNNOOPPSSIISS #include void ERR_remove_thread_state(const CRYPTO_THREADID *tid); Deprecated: void ERR_remove_state(unsigned long pid); DDEESSCCRRIIPPTTIIOONN _E_R_R___r_e_m_o_v_e___t_h_r_e_a_d___s_t_a_t_e_(_) frees the error queue associated with thread ttiidd. If ttiidd == NNUULLLL, 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. ERR_remove_state is deprecated and has been replaced by ERR_remove_thread_state. Since threads in OpenSSL are no longer identi- fied by unsigned long values any argument to this function is ignored. Calling ERR_remove_state is equivalent to EERRRR__rreemmoovvee__tthhrreeaadd__ssttaattee((NNUULLLL)). RREETTUURRNN VVAALLUUEE ERR_remove_thread_state and _E_R_R___r_e_m_o_v_e___s_t_a_t_e_(_) return no value. SSEEEE AALLSSOO _e_r_r(3) HHIISSTTOORRYY _E_R_R___r_e_m_o_v_e___s_t_a_t_e_(_) is available in all versions of SSLeay and OpenSSL. It was deprecated in OpenSSL 1.0.0 when ERR_remove_thread_state was introduced and thread IDs were introduced to identify threads instead of 'unsigned long'. 1.0.2u 2019-12-20 ERR_remove_state(3)