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; }