From 7f8b40d13541d1f8f56fd5e3000d6cec5915569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 23 Jun 2009 20:37:34 +0200 Subject: [PATCH] calling unknown function -> use --- src/checkmemoryleak.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/checkmemoryleak.cpp b/src/checkmemoryleak.cpp index ba431014b..39e407f48 100644 --- a/src/checkmemoryleak.cpp +++ b/src/checkmemoryleak.cpp @@ -486,6 +486,8 @@ const char * CheckMemoryLeakInFunction::call_func(const Token *tok, std::listGetFunctionTokenByName(funcname.c_str()); + if (!ftok) + return "use"; // how many parameters does the function want? if (numpar != countParameters(ftok))