diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 4876365ec..368013fa4 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -569,7 +569,8 @@ bool CheckMemoryLeakInFunction::test_white_list(const std::string &funcname) const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::list 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" ||