diff --git a/LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp b/LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp index e3c5c6e..5ad3dd3 100644 --- a/LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp +++ b/LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp @@ -15,6 +15,9 @@ qnn_wrapper_api::ModelError_t qnn_wrapper_api::freeQnnTensor(Qnn_Tensor_t &tenso // free all pointer allocations in struct free((void *)QNN_TENSOR_GET_NAME(tensor)); free(QNN_TENSOR_GET_DIMENSIONS(tensor)); + if (QNN_TENSOR_GET_IS_DYNAMIC_DIMENSIONS(tensor)) { + free(QNN_TENSOR_GET_IS_DYNAMIC_DIMENSIONS(tensor)); + } return MODEL_NO_ERROR; }