fix memory leak

This commit is contained in:
Dr. Stephen Henson 2012-09-11 13:45:11 +00:00
parent 0ad9fe2d59
commit ca461ecd11

View File

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