aboutsummaryrefslogtreecommitdiffstats
path: root/apps/apps.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2001-06-23 12:48:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2001-06-23 12:48:46 +0000
commit2c7bc88d785b40bd12a5080fc3d2ef9445460079 (patch)
treed43cc854436bb2b0d63ca422e4a27a33c847b125 /apps/apps.c
parent54f7ebe789e4dbd9f601452b5bb26432b9754a7b (diff)
downloadopenssl-2c7bc88d785b40bd12a5080fc3d2ef9445460079.tar.gz
Fix UI leak in apps.
Diffstat (limited to 'apps/apps.c')
-rw-r--r--apps/apps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/apps.c b/apps/apps.c
index 000157772f..9bbf476245 100644
--- a/apps/apps.c
+++ b/apps/apps.c
@@ -434,6 +434,14 @@ int setup_ui_method()
UI_method_set_closer(ui_method, ui_close);
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,
PW_CB_DATA *cb_tmp)
{