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))) {