Fix CppCheck Error in contentvalue.cc

/libretroshare/src/util/contentvalue.cc:189: error: Cppcheck(memleak):
Memory leak: dest
This commit is contained in:
Phenom 2017-07-21 15:04:10 +02:00
parent e5767431e6
commit 2afc1bf423

View File

@ -185,6 +185,7 @@ void ContentValue::put(const std::string &key, uint32_t len, const char* value){
mKvData.insert(std::pair<std::string, std::pair<uint32_t, char*> > mKvData.insert(std::pair<std::string, std::pair<uint32_t, char*> >
(key, std::pair<uint32_t, char*>(len, dest))); (key, std::pair<uint32_t, char*>(len, dest)));
//delete[] dest; //Deleted by clearData() //delete[] dest; //Deleted by clearData()
// cppcheck-suppress memleak
} }
bool ContentValue::getAsBool(const std::string &key, bool& value) const{ bool ContentValue::getAsBool(const std::string &key, bool& value) const{