Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

Commit

Permalink
#435: thread memory cleanup when using OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
hugbug committed Sep 5, 2017
1 parent 830130a commit bd3e407
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions daemon/connect/TlsSocket.cpp
Expand Up @@ -222,6 +222,10 @@ void TlsSocket::Final()
TlsSocket::~TlsSocket()
{
Close();

#ifdef HAVE_OPENSSL
ERR_remove_state(0);
#endif
}

void TlsSocket::ReportError(const char* errMsg, bool suppressable)
Expand Down

0 comments on commit bd3e407

Please sign in to comment.