fix memory leak

This commit is contained in:
Dr. Stephen Henson 2012-09-11 13:43:57 +00:00
parent e5db9c3b67
commit 0a17b8de06

View File

@ -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);