Fixed #1249 (false positive '(error) Resource leak: f' for 'popen' / 'if(pclose(f) < 0)' sequence)
This commit is contained in:
parent
a0e96be0c3
commit
25822dff24
|
@ -937,7 +937,7 @@ Token *CheckMemoryLeakInFunction::getcode(const Token *tok, std::list<const Toke
|
|||
if (parlevel <= 0)
|
||||
break;
|
||||
}
|
||||
if (Token::Match(tok2, "close|fclose|closedir ( %varid% )", varid))
|
||||
if (Token::Match(tok2, "close|pclose|fclose|closedir ( %varid% )", varid))
|
||||
{
|
||||
addtoken("dealloc");
|
||||
addtoken(";");
|
||||
|
|
Loading…
Reference in New Issue