CheckMemoryLeak: Report OtherRes leaks as resource leak

This commit is contained in:
Daniel Marjamäki 2013-12-12 18:23:42 +01:00
parent 35189e80f2
commit d2493fa3cb
1 changed files with 2 additions and 1 deletions

View File

@ -331,7 +331,8 @@ void CheckMemoryLeak::memoryLeak(const Token *tok, const std::string &varname, A
if (alloctype == CheckMemoryLeak::File ||
alloctype == CheckMemoryLeak::Pipe ||
alloctype == CheckMemoryLeak::Fd ||
alloctype == CheckMemoryLeak::Dir)
alloctype == CheckMemoryLeak::Dir ||
alloctype == CheckMemoryLeak::OtherRes)
resourceLeakError(tok, varname);
else
memleakError(tok, varname);