diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 0b2ba2ff4..4fe75b444 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -290,12 +290,12 @@ void CheckMemoryLeak::reportErr(const std::list &callstack, Sever void CheckMemoryLeak::memleakError(const Token *tok, const std::string &varname) const { - reportErr(tok, Severity::error, "memleak", "Memory leak: " + varname, 0U); + reportErr(tok, Severity::error, "memleak", "Memory leak: " + varname, 401U); } void CheckMemoryLeak::memleakUponReallocFailureError(const Token *tok, const std::string &varname) const { - reportErr(tok, Severity::error, "memleakOnRealloc", "Common realloc mistake: \'" + varname + "\' nulled but not freed upon failure", 0U); + reportErr(tok, Severity::error, "memleakOnRealloc", "Common realloc mistake: \'" + varname + "\' nulled but not freed upon failure", 401U); } void CheckMemoryLeak::resourceLeakError(const Token *tok, const std::string &varname) const @@ -308,22 +308,22 @@ void CheckMemoryLeak::resourceLeakError(const Token *tok, const std::string &var void CheckMemoryLeak::deallocDeallocError(const Token *tok, const std::string &varname) const { - reportErr(tok, Severity::error, "deallocDealloc", "Deallocating a deallocated pointer: " + varname, 0U); + reportErr(tok, Severity::error, "deallocDealloc", "Deallocating a deallocated pointer: " + varname, 415U); } void CheckMemoryLeak::deallocuseError(const Token *tok, const std::string &varname) const { - reportErr(tok, Severity::error, "deallocuse", "Dereferencing '" + varname + "' after it is deallocated / released", 0U); + reportErr(tok, Severity::error, "deallocuse", "Dereferencing '" + varname + "' after it is deallocated / released", 416U); } void CheckMemoryLeak::mismatchSizeError(const Token *tok, const std::string &sz) const { - reportErr(tok, Severity::error, "mismatchSize", "The allocated size " + sz + " is not a multiple of the underlying type's size.", 0U); + reportErr(tok, Severity::error, "mismatchSize", "The allocated size " + sz + " is not a multiple of the underlying type's size.", 131U); } void CheckMemoryLeak::mismatchAllocDealloc(const std::list &callstack, const std::string &varname) const { - reportErr(callstack, Severity::error, "mismatchAllocDealloc", "Mismatching allocation and deallocation: " + varname, 0U); + reportErr(callstack, Severity::error, "mismatchAllocDealloc", "Mismatching allocation and deallocation: " + varname, 762U); } CheckMemoryLeak::AllocType CheckMemoryLeak::functionReturnType(const Function* func, std::list *callstack) const