Skip to content

Commit 263fc4c

Browse files
committed
Turn off memory leaks in unit test
1 parent 8d5c1b4 commit 263fc4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/unittests/Serialization/ForceCheckFileInputTest.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export int aa = 43;
7575
std::shared_ptr<CompilerInvocation> Invocation =
7676
createInvocation(Args, CIOpts);
7777
EXPECT_TRUE(Invocation);
78+
Invocation->getFrontendOpts().DisableFree = false;
7879

7980
auto Buf = CIOpts.VFS->getBufferForFile("a.cppm");
8081
EXPECT_TRUE(Buf);
@@ -113,6 +114,7 @@ export int aa = 43;
113114
std::shared_ptr<CompilerInvocation> Invocation =
114115
createInvocation(Args, CIOpts);
115116
EXPECT_TRUE(Invocation);
117+
Invocation->getFrontendOpts().DisableFree = false;
116118

117119
CompilerInstance Clang;
118120

0 commit comments

Comments
 (0)