diff --git a/apps/s_server.c b/apps/s_server.c index b487da357851165fc3c6cdbc238f3035400c471d..77b34cbd3eb4adaacd7a43e7f58c3c11e523c1af 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);