mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
725d44985b
commit
7563cb02d0
@ -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 ;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user