From c2c5d607f2e02f0455f46e57497312f8597ff890 Mon Sep 17 00:00:00 2001 From: xuezhou_yan Date: Fri, 9 Aug 2024 17:26:47 +0800 Subject: [PATCH] =?UTF-8?q?issue:#IAJ1T8=20=E4=BF=AE=E5=A4=8D=E5=9F=BA?= =?UTF-8?q?=E7=A1=80=E7=94=A8=E4=BE=8Bdoublefree=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: xuezhou_yan --- src/create_pcid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/create_pcid.c b/src/create_pcid.c index 9a249e3..36f0f20 100644 --- a/src/create_pcid.c +++ b/src/create_pcid.c @@ -522,6 +522,8 @@ int32_t DecodePCID(char *inputFile, char *outDirPath) return FreeAfterDecodePCID(freePcidJsonInfo, FREE_DECODE_PCID_ROOT_OUT, ret); } + freePcidJsonInfo.sysCapObj = NULL; // avoid being released repeatedly. + freePcidJsonInfo.strJson = cJSON_Print(freePcidJsonInfo.jsonRootObj); const char outputFileName[] = "pcid.json";