diff --git a/mlir/test/Integration/Dialect/Memref/cast-runtime-verification.mlir b/mlir/test/Integration/Dialect/Memref/cast-runtime-verification.mlir --- a/mlir/test/Integration/Dialect/Memref/cast-runtime-verification.mlir +++ b/mlir/test/Integration/Dialect/Memref/cast-runtime-verification.mlir @@ -65,5 +65,7 @@ // CHECK-NOT: ERROR: Runtime op verification failed func.call @valid_cast(%3) : (memref<*xf32>) -> (memref) + memref.dealloc %alloc : memref<5xf32> + return } diff --git a/mlir/test/Integration/Dialect/Vector/CPU/test-transfer-write.mlir b/mlir/test/Integration/Dialect/Vector/CPU/test-transfer-write.mlir --- a/mlir/test/Integration/Dialect/Vector/CPU/test-transfer-write.mlir +++ b/mlir/test/Integration/Dialect/Vector/CPU/test-transfer-write.mlir @@ -136,6 +136,8 @@ : memref<4x4x4xf32>, vector<4x4x4xf32> vector.print %r : vector<4x4x4xf32> + memref.dealloc %A1 : memref<4x4x4xf32> + return }