diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-12 10:14:00 +0200 |
---|---|---|
committer | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2020-05-13 19:42:00 +0200 |
commit | 3c38fa4b797848a76b83f91e423de470adbb3b61 (patch) | |
tree | ecea0462a8c8d095e3908ffe4569248dfff0da07 | |
parent | d3d0784e4147d2253ed4a13b7eafea4eeeaf38fb (diff) |
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)
-rw-r--r-- | crypto/store/loader_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/store/loader_file.c b/crypto/store/loader_file.c index 9f6158ff79..320c527a65 100644 --- a/crypto/store/loader_file.c +++ b/crypto/store/loader_file.c @@ -278,6 +278,7 @@ static OSSL_STORE_INFO *try_decode_PKCS12(const char *pem_name, (void)sk_X509_shift(chain); } } + sk_X509_free(chain); if (!ok) { OSSL_STORE_INFO_free(osi_ca); OSSL_STORE_INFO_free(osi_cert); |