mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
Merge pull request #383 from PhenomRetroShare/Fix_FreeTcpPacketIfPeersUnknown
Free TcpPacket pointer if returns because peer is unknown.
This commit is contained in:
commit
5d69072c93
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user