[Mlir-commits] [mlir] [mlir][test] Fix memory leak after #184202 (PR #185142)
Thurston Dang
llvmlistbot at llvm.org
Fri Mar 6 16:54:04 PST 2026
https://github.com/thurstond created https://github.com/llvm/llvm-project/pull/185142
Reported by buildbot: https://lab.llvm.org/buildbot/#/builders/55/builds/25078
>From d5bbfff107c2811146601b6c37defe2c6bbafa6f Mon Sep 17 00:00:00 2001
From: Thurston Dang <thurston at google.com>
Date: Sat, 7 Mar 2026 00:52:12 +0000
Subject: [PATCH] [mlir][test] Fix memory leak after #184202
Reported by buildbot: https://lab.llvm.org/buildbot/#/builders/55/builds/25078
---
mlir/unittests/IR/OperationSupportTest.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp
index fc567bc4a8048..f00d5c1f7f927 100644
--- a/mlir/unittests/IR/OperationSupportTest.cpp
+++ b/mlir/unittests/IR/OperationSupportTest.cpp
@@ -370,6 +370,9 @@ TEST(OperationCloneTest, CloneWithDifferentResults) {
EXPECT_EQ(cloneOp->getResult(0).getType(), builder.getI32Type());
EXPECT_EQ(cloneOp->getResult(1).getType(), builder.getI16Type());
EXPECT_FALSE(map.contains(useOp->getResult(0)));
+
+ useOp->destroy();
+ cloneOp->destroy();
}
} // namespace
More information about the Mlir-commits
mailing list