free names before context
authorDr. Stephen Henson <steve@openssl.org>
Tue, 21 Jul 2015 13:27:10 +0000 (14:27 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 21 Jul 2015 13:27:25 +0000 (14:27 +0100)
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
ssl/ssl_conf.c

index d93f947eb144e1d94f88b3e92c3e08298391e283..5c320cbe792cf42bfdcb17827974ea3163d0a202 100644 (file)
@@ -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);
     }
 }