[mlir][memref] Fix memory leaks in `print-memref.mlir` (#137590)

This fixes the test when running with ASAN.
diff --git a/mlir/test/Integration/Dialect/MemRef/print-memref.mlir b/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
index 067cb38..b7a5dd3 100644
--- a/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
+++ b/mlir/test/Integration/Dialect/MemRef/print-memref.mlir
@@ -1,6 +1,7 @@
 // RUN: mlir-opt %s \
 // RUN: -one-shot-bufferize="bufferize-function-boundaries" --canonicalize \
-// RUN:   -finalize-memref-to-llvm\
+// RUN:   -buffer-deallocation-pipeline \
+// RUN:   -finalize-memref-to-llvm \
 // RUN:   -convert-func-to-llvm -reconcile-unrealized-casts |\
 // RUN: mlir-runner \
 // RUN:  -e entry -entry-point-result=void  \