From 7563cb02d0bd658f571435f91b48f415c6da636b Mon Sep 17 00:00:00 2001 From: thunder2 Date: Sun, 14 Jun 2015 20:42:25 +0000 Subject: [PATCH] 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 --- libretroshare/src/pqi/p3servicecontrol.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/pqi/p3servicecontrol.cc b/libretroshare/src/pqi/p3servicecontrol.cc index f8e0687c1..248a94cb1 100644 --- a/libretroshare/src/pqi/p3servicecontrol.cc +++ b/libretroshare/src/pqi/p3servicecontrol.cc @@ -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 ; }