Skip to content

Commit 2d92a4f

Browse files
Update testmemleak.cpp
1 parent 795041e commit 2d92a4f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

test/testmemleak.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,9 +1958,9 @@ class TestMemleakStructMember : public TestFixture {
19581958

19591959
void assign6() {
19601960
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"
1961+
"void f() {\n"
1962+
" S s;\n"
1963+
" s.p = static_cast<S*>(malloc(sizeof(S)));\n"
19641964
"}\n");
19651965
ASSERT_EQUALS("[test.cpp:5:1]: (error) Memory leak: s.p [memleak]\n", errout_str());
19661966
}

0 commit comments

Comments
 (0)