diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index 132236fe65095edaa3fce4e18328ee1ac54f4268..cf87f06a6ae308274ac267822c4b8887880b6a15 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -92,9 +92,8 @@ UI *UI_new_method(const UI_METHOD *method) return ret; } -static void free_string(void *data) +static void free_string(UI_STRING *uis) { - UI_STRING *uis = (UI_STRING *)data; if (uis->flags & OUT_STRING_FREEABLE) OPENSSL_free((char *)uis->out_string); OPENSSL_free(uis);