By the way, I am using QT version 4.6.2.
There is a reported bug about QSslSocket memory leak in the following link: http://bugreports.qt.nokia.com/browse/QTBUG-6504
I do not know whether or not this the problem I am having here.
Regards
By the way, I am using QT version 4.6.2.
There is a reported bug about QSslSocket memory leak in the following link: http://bugreports.qt.nokia.com/browse/QTBUG-6504
I do not know whether or not this the problem I am having here.
Regards
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:
Qt Code:
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
I think this is the bug reported:
http://bugreports.qt.nokia.com/browse/QTBUG-6504
Bookmarks