Fix a memory leak is ossl_provider_doall_activated
authorMatt Caswell <matt@openssl.org>
Thu, 26 May 2022 14:34:38 +0000 (15:34 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 2 Jun 2022 09:31:12 +0000 (10:31 +0100)
commitb4be10dfcd370960cecfda9773e1bfcc568a7390
treeaa526ed3d0df6e1aa3ef207ecc397f2896a95441
parentda3193976380b8bd697a472025ff9f384cbca7af
Fix a memory leak is ossl_provider_doall_activated

If the callback fails then we don't correctly free providers that were
already in our stack and that we up-refed earlier.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18413)
crypto/provider_core.c