Fix a memory leak in test_inference.cc (#6201)
Fix a memory leak in test_inference.cc (#6201)

* Fix a memory leak in test_inference.cc


microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime,microsoft/onnxruntime