Bernd Edlinger 729a1496cc Fix a possible memleak in bind_afalg
bind_afalg calls afalg_aes_cbc which allocates
cipher_handle->_hidden global object(s)
but if one of them fails due to out of memory,
the function bind_afalg relies on the engine destroy
method to be called.  But that does not happen
because the dynamic engine object is not destroyed
in the usual way in dynamic_load in this case:

If the bind_engine function fails, there will be no
further calls into the shared object.
See ./crypto/engine/eng_dyn.c near the comment:
/* Copy the original ENGINE structure back */

Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23409)
2024-01-31 10:30:33 +00:00
..
2023-09-07 09:59:15 +01:00
2024-01-31 10:30:33 +00:00
2019-09-28 20:26:36 +02:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2021-02-18 15:05:17 +00:00
2023-09-11 10:15:30 +02:00
2021-02-18 15:05:17 +00:00
2021-02-18 15:05:17 +00:00
2023-09-07 09:59:15 +01:00
2021-02-18 15:05:17 +00:00
2021-02-18 15:05:17 +00:00
2021-02-18 15:05:17 +00:00
2023-09-07 09:59:15 +01:00