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

index 374998f3c97f50bbcb33359d9e7d912a69d54be9..0248447f4a66fbbcb60c69cca0f06547951cd67a 100644 (file)
@@ -1901,6 +1901,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 30c8b5dbf58f4e0e67b07fc1cf2c33bd6885f513..4720c05a0b4d42a125e5e1a4353bc703320e23c6 100644 (file)
@@ -1892,6 +1892,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);