CheckMemoryLeak: Report OtherRes leaks as resource leak
This commit is contained in:
parent
35189e80f2
commit
d2493fa3cb
|
@ -331,7 +331,8 @@ void CheckMemoryLeak::memoryLeak(const Token *tok, const std::string &varname, A
|
||||||
if (alloctype == CheckMemoryLeak::File ||
|
if (alloctype == CheckMemoryLeak::File ||
|
||||||
alloctype == CheckMemoryLeak::Pipe ||
|
alloctype == CheckMemoryLeak::Pipe ||
|
||||||
alloctype == CheckMemoryLeak::Fd ||
|
alloctype == CheckMemoryLeak::Fd ||
|
||||||
alloctype == CheckMemoryLeak::Dir)
|
alloctype == CheckMemoryLeak::Dir ||
|
||||||
|
alloctype == CheckMemoryLeak::OtherRes)
|
||||||
resourceLeakError(tok, varname);
|
resourceLeakError(tok, varname);
|
||||||
else
|
else
|
||||||
memleakError(tok, varname);
|
memleakError(tok, varname);
|
||||||
|
|
Loading…
Reference in New Issue