mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix CppCheck Error in contentvalue.cc
/libretroshare/src/util/contentvalue.cc:189: error: Cppcheck(memleak): Memory leak: dest
This commit is contained in:
parent
e5767431e6
commit
2afc1bf423
@ -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{
|
||||||
|
Loading…
Reference in New Issue
Block a user