void err_cleanup(void) { if (set_err_thread_local != 0) CRYPTO_THREAD_cleanup_local(&err_thread_local); CRYPTO_THREAD_lock_free(err_string_lock); err_string_lock = NULL; lh_ERR_STRING_DATA_free(int_error_hash); int_error_hash = NULL; }
void err_free_strings_int(void) { CRYPTO_THREAD_run_once(&err_string_init, do_err_strings_init); CRYPTO_THREAD_write_lock(err_string_lock); lh_ERR_STRING_DATA_free(int_error_hash); int_error_hash = NULL; CRYPTO_THREAD_unlock(err_string_lock); }
void err_free_strings_int(void) { if (!RUN_ONCE(&err_string_init, do_err_strings_init)) return; CRYPTO_THREAD_write_lock(err_string_lock); lh_ERR_STRING_DATA_free(int_error_hash); int_error_hash = NULL; CRYPTO_THREAD_unlock(err_string_lock); }