diff --git a/lib/checkmemoryleak.cpp b/lib/checkmemoryleak.cpp index 64fd7bed1..3947277f8 100644 --- a/lib/checkmemoryleak.cpp +++ b/lib/checkmemoryleak.cpp @@ -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);