We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 795041e commit 2d92a4fCopy full SHA for 2d92a4f
1 file changed
test/testmemleak.cpp
@@ -1958,9 +1958,9 @@ class TestMemleakStructMember : public TestFixture {
1958
1959
void assign6() {
1960
check("struct S { S* p; };\n" // #14524
1961
- "void f() {\n"
1962
- " S s;\n"
1963
- " s.p = static_cast<S*>(malloc(sizeof(S)));\n"
+ "void f() {\n"
+ " S s;\n"
+ " s.p = static_cast<S*>(malloc(sizeof(S)));\n"
1964
"}\n");
1965
ASSERT_EQUALS("[test.cpp:5:1]: (error) Memory leak: s.p [memleak]\n", errout_str());
1966
}
0 commit comments