mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Free TcpPacket pointer if returns because peer is unknown.
This commit is contained in:
parent
52f488c84f
commit
6f03fa6601
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue