fix leaks
authorDr. Stephen Henson <steve@openssl.org>
Tue, 20 Nov 2012 00:28:22 +0000 (00:28 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 20 Nov 2012 00:28:22 +0000 (00:28 +0000)
apps/s_client.c
apps/s_server.c

index e64aaf6..7a75888 100644 (file)
@@ -1921,6 +1921,8 @@ end:
                EVP_PKEY_free(key);
        if (pass)
                OPENSSL_free(pass);
+       if (vpm)
+               X509_VERIFY_PARAM_free(vpm);
        if (cbuf != NULL) { OPENSSL_cleanse(cbuf,BUFSIZZ); OPENSSL_free(cbuf); }
        if (sbuf != NULL) { OPENSSL_cleanse(sbuf,BUFSIZZ); OPENSSL_free(sbuf); }
        if (mbuf != NULL) { OPENSSL_cleanse(mbuf,BUFSIZZ); OPENSSL_free(mbuf); }
index 0d49329..20f0c22 100644 (file)
@@ -1966,6 +1966,8 @@ end:
                OPENSSL_free(pass);
        if (dpass)
                OPENSSL_free(dpass);
+       if (vpm)
+               X509_VERIFY_PARAM_free(vpm);
 #ifndef OPENSSL_NO_TLSEXT
        if (tlscstatp.host)
                OPENSSL_free(tlscstatp.host);