diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-11-20 00:28:56 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-11-20 00:28:56 +0000 |
commit | 540f7c75ef6264f13817f1069f1b8dcf34e586e0 (patch) | |
tree | 4871bce30547158965ebb1da6d6eaed591335c93 | |
parent | d6342aab08b957dc90ace71d904cdeac8e573497 (diff) |
fix leaks
-rw-r--r-- | apps/s_client.c | 2 | ||||
-rw-r--r-- | apps/s_server.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/s_client.c b/apps/s_client.c index 374998f3c9..0248447f4a 100644 --- a/apps/s_client.c +++ b/apps/s_client.c @@ -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); } diff --git a/apps/s_server.c b/apps/s_server.c index 30c8b5dbf5..4720c05a0b 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -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); |