Skip to content

Commit 6e20cb5

Browse files
committed
[mlir] fix memory leak
Fix a leak of the root operation not being deleted in the recently introduced transform_interpreter.c.
1 parent c50ca3d commit 6e20cb5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/test/CAPI/transform_interpreter.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ int testApplyNamedSequence(MlirContext ctx) {
4646
MlirLogicalResult result =
4747
mlirTransformApplyNamedSequence(root, entry, root, options);
4848
mlirTransformOptionsDestroy(options);
49+
mlirOperationDestroy(root);
4950
if (mlirLogicalResultIsFailure(result))
5051
return 2;
5152

0 commit comments

Comments
 (0)