Remainder of SSL purpose and trust code: trust and purpose setting in
[openssl.git] / apps / s_client.c
index 60a8728c9bc837d4af966a8261b51a1d71de7458..0afd7907a1fdb8723afc9b6104835e1a62a9448e 100644 (file)
@@ -740,6 +740,7 @@ end:
        if (ctx != NULL) SSL_CTX_free(ctx);
        if (cbuf != NULL) { memset(cbuf,0,BUFSIZZ); Free(cbuf); }
        if (sbuf != NULL) { memset(sbuf,0,BUFSIZZ); Free(sbuf); }
        if (ctx != NULL) SSL_CTX_free(ctx);
        if (cbuf != NULL) { memset(cbuf,0,BUFSIZZ); Free(cbuf); }
        if (sbuf != NULL) { memset(sbuf,0,BUFSIZZ); Free(sbuf); }
+       X509_cleanup();
        if (bio_c_out != NULL)
                {
                BIO_free(bio_c_out);
        if (bio_c_out != NULL)
                {
                BIO_free(bio_c_out);