From 4dfb32da6ef75bb90db4722d5b91adae00abfaba Mon Sep 17 00:00:00 2001 From: tongkai0808fh Date: Sat, 18 May 2024 01:48:43 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9src/create=5Fpcid.c=E6=96=87?= =?UTF-8?q?=E4=BB=B6=EF=BC=8C=E6=B6=88=E9=99=A4=E4=B8=BB=E5=B9=B2=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E5=AE=89=E5=85=A8=E5=91=8A=E8=AD=A6=20506=E8=A1=8Cfre?= =?UTF-8?q?ePcidJsonInfo=E5=BC=82=E5=B8=B8=E5=90=8EfreePcidJsonInfo.sysCap?= =?UTF-8?q?Obj=20=E5=8F=98=E9=87=8F=E9=87=8D=E6=96=B0=E8=B5=8B=E5=80=BC?= =?UTF-8?q?=E4=B8=BA0=EF=BC=8C=E9=98=B2=E6=AD=A2=E5=86=85=E5=AD=98?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tongkai0808fh --- src/create_pcid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/create_pcid.c b/src/create_pcid.c index 1ad5fc0..8d46f3c 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -504,6 +504,7 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) freePcidJsonInfo.sysCapObj = cJSON_CreateObject(); ret = CheckSysCapObj(freePcidJsonInfo, pcidMain, contextBufLen, ret); if (freePcidJsonInfo.flag == -1) { + freePcidJsonInfo.sysCapObj = NULL; return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_CONTEXT_OUT, ret); }