From: Dr. Stephen Henson Date: Sun, 9 Sep 2012 21:19:32 +0000 (+0000) Subject: fix memory leak X-Git-Tag: master-post-reformat~1701 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=147d4c96b019192611c77070f7daa67b82543521;p=oweals%2Fopenssl.git fix memory leak --- diff --git a/apps/s_server.c b/apps/s_server.c index 45eea960b8..b487da3578 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2092,6 +2092,10 @@ 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)