From ca461ecd11aafcdbad65f4c8e403bab058111334 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 11 Sep 2012 13:45:11 +0000 Subject: [PATCH] fix memory leak --- apps/s_server.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/s_server.c b/apps/s_server.c index 60c08bec1..f1cd17a3f 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);