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 e64aaf66c681d67a502c2d1e43a856ffcf1a83d5..7a75888daf8be58c5500a2074ee03a2f89f0d1c2 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 0d493295efd3ba844c0d041a37004eff828020d3..20f0c221a0d698f4e85de7fe72a6192115378e21 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);