ERR_remove_state(3) OpenSSL ERR_remove_state(3) NNAAMMEE ERR_remove_state - free a thread's error queue SSYYNNOOPPSSIISS #include void ERR_remove_state(unsigned long pid); DDEESSCCRRIIPPTTIIOONN _E_R_R___r_e_m_o_v_e___s_t_a_t_e_(_) frees the error queue associated with thread ppiidd. If ppiidd == 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. RREETTUURRNN VVAALLUUEE _E_R_R___r_e_m_o_v_e___s_t_a_t_e_(_) returns 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. 1.0.1u 2016-09-22 ERR_remove_state(3)