diff --git a/libretroshare/src/pqi/p3cfgmgr.cc b/libretroshare/src/pqi/p3cfgmgr.cc index 3e82d01ec..03a3f720e 100644 --- a/libretroshare/src/pqi/p3cfgmgr.cc +++ b/libretroshare/src/pqi/p3cfgmgr.cc @@ -512,6 +512,8 @@ bool p3GeneralConfig::saveList(bool &cleanup, std::list& savelist) { savelist.push_back(item); } + else + delete item; return true; }