mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Free TcpPacket pointer if returns because peer is unknown.
This commit is contained in:
parent
52f488c84f
commit
6f03fa6601
@ -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