CheckMemoryLeakInFunction: Use <ignore> info from Library
This commit is contained in:
parent
6fe1b92a47
commit
f02e885b42
|
@ -569,7 +569,8 @@ bool CheckMemoryLeakInFunction::test_white_list(const std::string &funcname)
|
||||||
|
|
||||||
const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list<const Token *> callstack, const unsigned int varid, AllocType &alloctype, AllocType &dealloctype, bool &allocpar, unsigned int sz)
|
const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list<const Token *> callstack, const unsigned int varid, AllocType &alloctype, AllocType &dealloctype, bool &allocpar, unsigned int sz)
|
||||||
{
|
{
|
||||||
if (test_white_list(tok->str())) {
|
if (test_white_list(tok->str()) ||
|
||||||
|
(_settings->library.ignore.find(tok->str()) != _settings->library.ignore.end())) {
|
||||||
if (tok->str() == "asprintf" ||
|
if (tok->str() == "asprintf" ||
|
||||||
tok->str() == "delete" ||
|
tok->str() == "delete" ||
|
||||||
tok->str() == "fclose" ||
|
tok->str() == "fclose" ||
|
||||||
|
|
Loading…
Reference in New Issue