From 75564c3ccb99db55787d3f7763b9221e43608cd0 Mon Sep 17 00:00:00 2001 From: quic-zhanweiw <150764245+quic-zhanweiw@users.noreply.github.com> Date: Tue, 25 Jun 2024 13:17:05 +0800 Subject: [PATCH] Update QnnWrapperUtils.cpp Signed-off-by: quic-zhanweiw <150764245+quic-zhanweiw@users.noreply.github.com> --- LibQNNHelper/src/WrapperUtils/QnnWrapperUtils.cpp | 3 +++ 1 file changed, 3 insertions(+) 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; }