[mlir][sparse] fix memory leak in test cases
authorPeiming Liu <peiming@google.com>
Mon, 14 Nov 2022 22:28:12 +0000 (22:28 +0000)
committerPeiming Liu <peiming@google.com>
Mon, 14 Nov 2022 23:03:46 +0000 (23:03 +0000)
Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D137985

mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_codegen_foreach.mlir

index 0124ffc..c6ebd2f 100644 (file)
@@ -251,6 +251,7 @@ module {
     bufferization.dealloc_tensor %s3 : tensor<2x2xf64, #DCSC>
     bufferization.dealloc_tensor %s4 : tensor<2x2xf64, #SortedCOO>
     bufferization.dealloc_tensor %s5 : tensor<2x2xf64, #SortedCOOPerm>
+    bufferization.dealloc_tensor %s6 : tensor<7x8x9xf64, #CCCPerm>
 
     return
   }