Finally I found the code causing the memory leak:
In the server side, setting the private key causes a memory leak. It seems like a bug in QT.
The code that causes the memory leak is:
m_socket->setPrivateKey(":/certs/my-key.pem"); // Add the key that will make the handshake
m_socket->setLocalCertificate(":/certs/my-cert.pem");
m_socket->setPrivateKey(":/certs/my-key.pem"); // Add the key that will make the handshake
m_socket->setLocalCertificate(":/certs/my-cert.pem");
To copy to clipboard, switch view to plain text mode
Bookmarks