From 5bdb4953e67116ce43a86a2cbf22500f12af15d6 Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Tue, 5 Aug 2025 19:54:30 +0800 Subject: [PATCH] =?UTF-8?q?[Bug]:=20=E5=91=8A=E8=AD=A6=E5=A4=84=E7=90=86?= =?UTF-8?q?=EF=BC=8C=E6=B8=85=E7=90=86=E6=B2=A1=E6=9C=89=E9=87=8A=E6=94=BE?= =?UTF-8?q?=E7=9A=84=E5=86=85=E5=AD=98=20https://gitee.com/openharmony/dev?= =?UTF-8?q?eloptools=5Fsyscap=5Fcodec/issues/ICRCLU?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuezhou_yan --- src/syscap_tool.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/syscap_tool.c b/src/syscap_tool.c index d58259b..fedff4d 100644 --- a/src/syscap_tool.c +++ b/src/syscap_tool.c @@ -750,5 +750,12 @@ int32_t ComparePcidWithRpcidString(char *pcidFile, char *rpcidFile, uint32_t typ printf("Fail! The pcid does not meet the rpcid\n"); } + if (type == TYPE_FILE) { + FreePointerMemory(pcidContent, rpcidContent, pcidPriSyscap, rpcidPriSyscap); + } else if (type == TYPE_STRING) { + SafeFree(pcidPriSyscap); + SafeFree(rpcidPriSyscap); + } + return 0; }