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,7 +1880,8 @@ int TcpStream::toSend(TcpPacket *pkt, bool retrans)
std::cerr << "TcpStream::toSend() peerUnknown ERROR!!!";
std::cerr << std::endl;
#endif
return 0;
delete pkt;
return 0;
}
/* get accurate timestamp */