From: Dr. Stephen Henson <steve@openssl.org> Date: Tue, 11 Sep 2012 13:45:11 +0000 (+0000) Subject: fix memory leak X-Git-Tag: OpenSSL_1_0_0k~48 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ca461ecd11aafcdbad65f4c8e403bab058111334;p=oweals%2Fopenssl.git fix memory leak --- diff --git a/apps/s_server.c b/apps/s_server.c index 60c08bec1c..f1cd17a3ff 100644 --- a/apps/s_server.c +++ b/apps/s_server.c @@ -1710,6 +1710,12 @@ end: 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);