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,6 +1880,7 @@ int TcpStream::toSend(TcpPacket *pkt, bool retrans)
|
|||||||
std::cerr << "TcpStream::toSend() peerUnknown ERROR!!!";
|
std::cerr << "TcpStream::toSend() peerUnknown ERROR!!!";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
#endif
|
#endif
|
||||||
|
delete pkt;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user