Free TcpPacket pointer if returns because peer is unknown.

This commit is contained in:
Phenom 2016-05-13 17:58:38 +02:00
parent 52f488c84f
commit 6f03fa6601

View File

@ -1880,6 +1880,7 @@ int TcpStream::toSend(TcpPacket *pkt, bool retrans)
std::cerr << "TcpStream::toSend() peerUnknown ERROR!!!";
std::cerr << std::endl;
#endif
delete pkt;
return 0;
}