From: Pauli Date: Fri, 25 Jun 2021 02:56:01 +0000 (+1000) Subject: ui: address potential memory leak X-Git-Tag: openssl-3.0.0-beta2~186 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a52d20c82a82a0c1d5ecf9f1337906c6783f0971;p=thirdparty%2Fopenssl.git ui: address potential memory leak Reviewed-by: Shane Lontis (Merged from https://github.com/openssl/openssl/pull/15910) --- diff --git a/crypto/ui/ui_lib.c b/crypto/ui/ui_lib.c index fd03dc6cd06..7cb91add419 100644 --- a/crypto/ui/ui_lib.c +++ b/crypto/ui/ui_lib.c @@ -43,7 +43,7 @@ UI *UI_new_method(const UI_METHOD *method) ret->meth = method; if (!CRYPTO_new_ex_data(CRYPTO_EX_INDEX_UI, ret, &ret->ex_data)) { - OPENSSL_free(ret); + UI_free(ret); return NULL; } return ret;