fix memory leak
This commit is contained in:
parent
e5db9c3b67
commit
0a17b8de06
@ -2102,6 +2102,12 @@ end:
|
|||||||
OPENSSL_free(dpass);
|
OPENSSL_free(dpass);
|
||||||
free_sessions();
|
free_sessions();
|
||||||
#ifndef OPENSSL_NO_TLSEXT
|
#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 (ctx2 != NULL) SSL_CTX_free(ctx2);
|
||||||
if (s_cert2)
|
if (s_cert2)
|
||||||
X509_free(s_cert2);
|
X509_free(s_cert2);
|
||||||
|
Loading…
Reference in New Issue
Block a user