mirror of
https://github.com/openssl/openssl.git
synced 2026-06-06 20:18:09 +00:00
Currently when allocation of cb item fails, the actual cb function is not called. The is used just in hashtable when the cb function frees the old item which result in memory leak. To fix this, the allocation needs to be separated and happen before the assign operation is done. Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org> Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.foundation> MergeDate: Mon May 11 08:21:55 2026 (Merged from https://github.com/openssl/openssl/pull/31092)