From: Dr. Stephen Henson Date: Tue, 11 Sep 2012 13:43:57 +0000 (+0000) Subject: fix memory leak X-Git-Tag: master-post-reformat~1698 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a17b8de06490ec466cf82e77e1cb9af3ece97ef;p=oweals%2Fopenssl.git fix memory leak --- diff --git a/apps/s_server.c b/apps/s_server.c index b487da3578..77b34cbd3e 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -2102,6 +2102,12 @@ end: OPENSSL_free(dpass); free_sessions(); #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);