testunusedvar: fix mismatching allocation/deallocation in test
This commit is contained in:
parent
5b3227db8d
commit
56410c3d00
|
@ -5036,7 +5036,7 @@ private:
|
|||
"void foo()\n"
|
||||
"{\n"
|
||||
" struct Fred* ptr = new Fred();\n"
|
||||
" free(ptr);\n"
|
||||
" delete ptr;\n"
|
||||
"}");
|
||||
ASSERT_EQUALS("[test.cpp:4]: (style) Variable 'ptr' is allocated memory that is never used.\n", errout.str());
|
||||
|
||||
|
|
Loading…
Reference in New Issue