Fix UI leak in apps.
This commit is contained in:
parent
54f7ebe789
commit
2c7bc88d78
@ -434,6 +434,14 @@ int setup_ui_method()
|
|||||||
UI_method_set_closer(ui_method, ui_close);
|
UI_method_set_closer(ui_method, ui_close);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
void destroy_ui_method()
|
||||||
|
{
|
||||||
|
if(ui_method)
|
||||||
|
{
|
||||||
|
UI_destroy_method(ui_method);
|
||||||
|
ui_method = NULL;
|
||||||
|
}
|
||||||
|
}
|
||||||
int password_callback(char *buf, int bufsiz, int verify,
|
int password_callback(char *buf, int bufsiz, int verify,
|
||||||
PW_CB_DATA *cb_tmp)
|
PW_CB_DATA *cb_tmp)
|
||||||
{
|
{
|
||||||
|
@ -155,6 +155,7 @@ int password_callback(char *buf, int bufsiz, int verify,
|
|||||||
PW_CB_DATA *cb_data);
|
PW_CB_DATA *cb_data);
|
||||||
|
|
||||||
int setup_ui_method();
|
int setup_ui_method();
|
||||||
|
void destroy_ui_method();
|
||||||
|
|
||||||
int should_retry(int i);
|
int should_retry(int i);
|
||||||
int args_from_file(char *file, int *argc, char **argv[]);
|
int args_from_file(char *file, int *argc, char **argv[]);
|
||||||
|
@ -350,6 +350,7 @@ end:
|
|||||||
ERR_free_strings();
|
ERR_free_strings();
|
||||||
|
|
||||||
ENGINE_cleanup();
|
ENGINE_cleanup();
|
||||||
|
destroy_ui_method();
|
||||||
|
|
||||||
CRYPTO_mem_leaks(bio_err);
|
CRYPTO_mem_leaks(bio_err);
|
||||||
if (bio_err != NULL)
|
if (bio_err != NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user