void UI_free(UI *ui) { if (ui == NULL) return; sk_UI_STRING_pop_free(ui->strings, free_string); CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI, ui, &ui->ex_data); OPENSSL_free(ui); }
void UI_free(UI *ui) { if (ui == NULL) return; if ((ui->flags & UI_FLAG_DUPL_DATA) != 0) { ui->meth->ui_destroy_data(ui, ui->user_data); } sk_UI_STRING_pop_free(ui->strings, free_string); CRYPTO_free_ex_data(CRYPTO_EX_INDEX_UI, ui, &ui->ex_data); CRYPTO_THREAD_lock_free(ui->lock); OPENSSL_free(ui); }