mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-03 13:09:38 +00:00
Preliminary fix of memory leak in try_decode_PKCS12() - full fix is in #11733
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: David von Oheimb <david.von.oheimb@siemens.com> (Merged from https://github.com/openssl/openssl/pull/11470)
This commit is contained in:
parent
d3d0784e41
commit
3c38fa4b79
@ -278,6 +278,7 @@ static OSSL_STORE_INFO *try_decode_PKCS12(const char *pem_name,
|
|||||||
(void)sk_X509_shift(chain);
|
(void)sk_X509_shift(chain);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sk_X509_free(chain);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
OSSL_STORE_INFO_free(osi_ca);
|
OSSL_STORE_INFO_free(osi_ca);
|
||||||
OSSL_STORE_INFO_free(osi_cert);
|
OSSL_STORE_INFO_free(osi_cert);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user