We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84b0830 commit 5945b7eCopy full SHA for 5945b7e
1 file changed
test/testmemleak.cpp
@@ -2772,12 +2772,6 @@ class TestMemleakNoVar : public TestFixture {
2772
"}");
2773
ASSERT_EQUALS("[test.cpp:2:3]: (error) Return value of allocation function 'fopen' is not stored. [leakReturnValNotUsed]\n", errout_str());
2774
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
-
2781
check("void foo() {\n"
2782
" freopen(\"file.txt\", \"r\", stdin);\n"
2783
0 commit comments