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 d93f947..5c320cb 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);
     }
 }