Fixed memory leak when RsServicePermissionItem::deserialise failed.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8449 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-14 20:42:25 +00:00
parent 725d44985b
commit 7563cb02d0

View File

@ -166,6 +166,7 @@ public:
if (offset != rssize || !ok)
{
std::cerr << __PRETTY_FUNCTION__ << ": error while deserialising! Item will be dropped." << std::endl;
delete(item);
return NULL ;
}