Thanks for advance.But if I change to use QTcpServer and QTcpSocket,the memory leak is gone.Now I have used QTcpSocket.Everything is ok.