]> git.ipfire.org Git - thirdparty/openssl.git/commit
crypto/ui/ui_lib.c: Add OPENSSL_free to avoid memory leaks
authorJiashengJiang <jiasheng@purdue.edu>
Tue, 1 Apr 2025 01:22:53 +0000 (21:22 -0400)
committerMatt Caswell <matt@openssl.org>
Mon, 14 Apr 2025 14:17:29 +0000 (15:17 +0100)
commit8f06efe234ca875eb09af7f35f1ad3d62be696aa
tree2340d4a3c20abc6e6e1aafbe34524a44aaeb2313
parent7bf52a6f6f0d22c3a1aba39d21aabf0c8a818ba7
crypto/ui/ui_lib.c: Add OPENSSL_free to avoid memory leaks

Add OPENSSL_free() if general_allocate_boolean() or general_allocate_string fails to avoid memory leaks.

Fixes: a63d5eaab2 ("Add a general user interface API. This is designed to replace things like des_read_password and friends (backward compatibility functions using this new API are provided). The purpose is to remove prompting functions from the DES code section as well as provide for prompting through dialog boxes in a window system and the like.")
Signed-off-by: JiashengJiang <jiasheng@purdue.edu>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27218)
crypto/ui/ui_lib.c