From: Dr. Stephen Henson Date: Tue, 21 Jul 2015 13:27:10 +0000 (+0100) Subject: free names before context X-Git-Tag: OpenSSL_1_1_0-pre1~910 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4445704f912495227e9e99835e94219d7e79684c;p=oweals%2Fopenssl.git free names before context Reviewed-by: Kurt Roeckx --- diff --git a/ssl/ssl_conf.c b/ssl/ssl_conf.c index d93f947eb1..5c320cbe79 100644 --- a/ssl/ssl_conf.c +++ b/ssl/ssl_conf.c @@ -832,8 +832,8 @@ void SSL_CONF_CTX_free(SSL_CONF_CTX *cctx) for (i = 0; i < SSL_PKEY_NUM; i++) OPENSSL_free(cctx->cert_filename[i]); OPENSSL_free(cctx->prefix); - OPENSSL_free(cctx); sk_X509_NAME_pop_free(cctx->canames, X509_NAME_free); + OPENSSL_free(cctx); } }