From a382a0f5cead0d3ac8914f8e86bb129f6bb3f71a Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 25 Jul 2017 21:52:09 +0200 Subject: [PATCH] fixed memory leak in p3peermgr config load --- libretroshare/src/pqi/p3peermgr.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/pqi/p3peermgr.cc b/libretroshare/src/pqi/p3peermgr.cc index 993e1b137..68df7f01f 100644 --- a/libretroshare/src/pqi/p3peermgr.cc +++ b/libretroshare/src/pqi/p3peermgr.cc @@ -2320,6 +2320,7 @@ bool p3PeerMgrIMPL::loadList(std::list& load) std::cerr << "(II) Loaded group in new format. ID = " << info.id << std::endl; groupList[info.id] = info ; + delete *it ; continue; } RsPeerBandwidthLimitsItem *pblitem = dynamic_cast(*it) ;