diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-09-11 13:44:19 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-09-11 13:44:19 +0000 |
commit | f8b90b5a5d4ea7600cb1d82a6a966ad161a8a8e4 (patch) | |
tree | 3e6f30d07f6ed514da463fc32d152c228a086361 /apps | |
parent | dc144417571735c82853421a8845ef603d828a0b (diff) |
fix memory leak
Diffstat (limited to 'apps')
-rw-r--r-- | apps/s_server.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/s_server.c b/apps/s_server.c index 9692c70b2d..0d493295ef 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1958,11 +1958,21 @@ end: EVP_PKEY_free(s_key); if (s_dkey) EVP_PKEY_free(s_dkey); + if (s_chain) + sk_X509_pop_free(s_chain, X509_free); + if (s_dchain) + sk_X509_pop_free(s_dchain, X509_free); if (pass) OPENSSL_free(pass); if (dpass) OPENSSL_free(dpass); #ifndef OPENSSL_NO_TLSEXT + if (tlscstatp.host) + OPENSSL_free(tlscstatp.host); + if (tlscstatp.port) + OPENSSL_free(tlscstatp.port); + if (tlscstatp.path) + OPENSSL_free(tlscstatp.path); if (ctx2 != NULL) SSL_CTX_free(ctx2); if (s_cert2) X509_free(s_cert2); |