mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-03 22:55:04 -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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue