From b25f6f30ef87d4efe590af6bb1a4fbda055dceaf Mon Sep 17 00:00:00 2001 From: csoler Date: Tue, 11 Nov 2014 17:10:16 +0000 Subject: [PATCH] fixed memory leak git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7671 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/rsgenexchange.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libretroshare/src/gxs/rsgenexchange.cc b/libretroshare/src/gxs/rsgenexchange.cc index c0dbc01e9..6d73ee1fe 100644 --- a/libretroshare/src/gxs/rsgenexchange.cc +++ b/libretroshare/src/gxs/rsgenexchange.cc @@ -2375,6 +2375,10 @@ bool RsGenExchange::getGroupKeys(const RsGxsGroupId &grpId, RsTlvSecurityKeySet return false; keySet = meta->keys; + + for(std::map::iterator it=grpMeta.begin();it!=grpMeta.end();++it) + delete it->second ; + return true; }