From 7330ab894ce2b726538bccc4ac8f473ea794d48f Mon Sep 17 00:00:00 2001 From: thunder2 Date: Wed, 24 Jul 2013 11:51:23 +0000 Subject: [PATCH] Fixed memory leak in RsDataService::retrieveNxsGrps when no group is available. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6537 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/gxs/rsdataservice.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretroshare/src/gxs/rsdataservice.cc b/libretroshare/src/gxs/rsdataservice.cc index 2a5ef97ae..6836fa028 100644 --- a/libretroshare/src/gxs/rsdataservice.cc +++ b/libretroshare/src/gxs/rsdataservice.cc @@ -705,7 +705,7 @@ int RsDataService::retrieveNxsGrps(std::map &grp, bool } } - if(withMeta) + if(withMeta && !grp.empty()) { std::map metaMap; std::map::iterator mit = grp.begin();