mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
added missing delete when RsDiscReply item is rejected because of service permissions, causing memory leak
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6525 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
f5218cdfc3
commit
b1bc66b319
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ int p3disc::handleIncoming()
|
|||
{
|
||||
if(rsPeers->servicePermissionFlags_sslid(item->PeerId()) & RS_SERVICE_PERM_DISCOVERY)
|
||||
recvDiscReply(dri);
|
||||
else
|
||||
delete item ;
|
||||
}
|
||||
else if (NULL != (dvi = dynamic_cast<RsDiscVersion *> (item)))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue