From b1bc66b319b87698f627a3a1983e6bd959c88eac Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 21 Jul 2013 19:20:12 +0000 Subject: [PATCH] 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 --- libretroshare/src/services/p3disc.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 9b7d2e211..ca97cd974 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -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 (item))) {