Skip to content

Commit 5945b7e

Browse files
Update testmemleak.cpp
1 parent 84b0830 commit 5945b7e

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

test/testmemleak.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2772,12 +2772,6 @@ class TestMemleakNoVar : public TestFixture {
27722772
"}");
27732773
ASSERT_EQUALS("[test.cpp:2:3]: (error) Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed]\n", errout_str());
27742774

2775-
check("void foo() {\n"
2776-
" FILE *f = fopen(\"file.txt\", \"r\");\n"
2777-
" freopen(\"file.txt\", \"r\", f);\n"
2778-
"}");
2779-
ASSERT_EQUALS("[test.cpp:3:3]: (error) Return value of allocation function 'freopen' is not stored. [leakReturnValNotUsed]\n", errout_str());
2780-
27812775
check("void foo() {\n"
27822776
" freopen(\"file.txt\", \"r\", stdin);\n"
27832777
"}");

0 commit comments

Comments
 (0)