Fix engine cleanup error handling
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Tue, 5 Sep 2023 14:59:45 +0000 (16:59 +0200)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Fri, 15 Sep 2023 06:11:53 +0000 (08:11 +0200)
commit00f2efccf5b9671a7af2b12571068258e9c255a5
treed212cf8c3881462ac34b161b781b29b0c6fbc9be
parentfc785a554cc37dfa94710b28ced45b03006f0300
Fix engine cleanup error handling

Error handling in engine_cleanup_add_first/last was
broken and caused memory leaks.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/21971)
crypto/engine/eng_lib.c
crypto/engine/eng_list.c
crypto/engine/eng_local.h
crypto/engine/eng_table.c