Removed redundant test, which was related to the Tokenizer, not to the memory leak checker.
This commit is contained in:
parent
4705026242
commit
6f80c5ff64
|
@ -343,8 +343,6 @@ private:
|
|||
|
||||
// #2662: segfault because of endless recursion (call_func -> getAllocationType -> functionReturnType -> call_func ..)
|
||||
TEST_CASE(trac2662);
|
||||
|
||||
TEST_CASE(redundantCodeAfterReturnGoto);
|
||||
}
|
||||
|
||||
|
||||
|
@ -3713,21 +3711,6 @@ private:
|
|||
"}\n");
|
||||
ASSERT_EQUALS("", errout.str());
|
||||
}
|
||||
|
||||
//ticket # 3083
|
||||
void redundantCodeAfterReturnGoto() {
|
||||
check("void foo()\n"
|
||||
"{\n"
|
||||
" char * data;\n"
|
||||
" data = NULL;\n"
|
||||
" goto source;\n"
|
||||
" data = (char *)malloc((10+1)*sizeof(char));\n"
|
||||
"source:\n"
|
||||
" data = (char *)malloc(10*sizeof(char));\n"
|
||||
" free(data);\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("",errout.str());
|
||||
}
|
||||
};
|
||||
|
||||
static TestMemleakInFunction testMemleakInFunction;
|
||||
|
|
Loading…
Reference in New Issue