mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -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
1 changed files with 1 additions and 0 deletions
|
@ -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*> >
|
||||
(key, std::pair<uint32_t, char*>(len, dest)));
|
||||
//delete[] dest; //Deleted by clearData()
|
||||
// cppcheck-suppress memleak
|
||||
}
|
||||
|
||||
bool ContentValue::getAsBool(const std::string &key, bool& value) const{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue