diff --git a/checkmemoryleak.cpp b/checkmemoryleak.cpp index 2ed31a009..38ffb0e5c 100644 --- a/checkmemoryleak.cpp +++ b/checkmemoryleak.cpp @@ -261,18 +261,13 @@ const char * CheckMemoryLeakClass::call_func( const TOKEN *tok, std::listlist, parent, link);\n" + "}\n" + "\n" + "int foo()\n" + "{\n" + " struct mmtimer *base;\n" + "\n" + " base = kmalloc(sizeof(struct mmtimer), GFP_KERNEL);\n" + " if (base == NULL)\n" + " return -ENOMEM;\n" + "\n" + " add_list(base);\n" + "}\n" ); + ASSERT_EQUALS( std::string(""), errout.str() ); + } + /* void func3()