Merge pull request #383 from PhenomRetroShare/Fix_FreeTcpPacketIfPeersUnknown

Free TcpPacket pointer if returns because peer is unknown.
This commit is contained in:
Cyril Soler 2016-05-14 18:53:57 -04:00
commit 5d69072c93

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 */