CheckMemoryLeakInFunction: Use <ignore> info from Library

This commit is contained in:
Daniel Marjamäki 2013-07-19 07:50:54 +02:00
parent 6fe1b92a47
commit f02e885b42
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{
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" ||
tok->str() == "delete" ||
tok->str() == "fclose" ||