Skip to content

Commit

Permalink
[mlir] Added erase() to fix memory leak.
Browse files Browse the repository at this point in the history
  • Loading branch information
chsigg committed Sep 7, 2023
1 parent 77e0863 commit 42db67c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mlir/unittests/IR/InterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ TEST(InterfaceTest, TestCustomClassOf) {
EXPECT_TRUE(isa<TestOptionallyImplementedOpInterface>(*op));
op.setImplementsInterface(false);
EXPECT_FALSE(isa<TestOptionallyImplementedOpInterface>(*op));
op.erase();
}

0 comments on commit 42db67c

Please sign in to comment.