onnxruntime
8570298d - [QNN EP] fix memory leak in OrtEpFactory::GetSupportedDevices() (#25968)

Commit
170 days ago
[QNN EP] fix memory leak in OrtEpFactory::GetSupportedDevices() (#25968) ### Description Fixes memory leak in `OrtEpFactory::GetSupportedDevices()`. The `OrtKeyValuePairs` instance created by the factory was not released. This memory leak can be reproduced by running the unit test [QnnHTPBackendTests.AutoEp_PreferNpu](https://github.com/microsoft/onnxruntime/blob/4e2699fbf24d96d2a0261b30509864da08b701de/onnxruntime/test/providers/qnn/qnn_basic_test.cc#L1426). ### Motivation and Context Fix memory leak that one encounters when using automatic EP selection (e.g., PREFER_NPU) with QNN EP.
Parents
Loading