[mlir][sparse] fixed memory leak on sparse tensors
authorAart Bik <ajcbik@google.com>
Mon, 10 Oct 2022 22:10:25 +0000 (15:10 -0700)
committerAart Bik <ajcbik@google.com>
Mon, 10 Oct 2022 22:16:53 +0000 (15:16 -0700)
commit8fc63d14c0e0a8425b7eeedd50bd252132595651
tree84db05a159b857bf054c65f79c2f55189f1262fe
parente5fd507f9b6f774c83c7b061fa77c906c882935b
[mlir][sparse] fixed memory leak on sparse tensors

This was introduced by https://reviews.llvm.org/D134933
This change also cleans up a dump&release method which
had become a misnomer after prior bufferization improvement.

Reviewed By: Peiming

Differential Revision: https://reviews.llvm.org/D135623
mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_conversion_sparse2sparse.mlir