From a83b09865b69665b8782b5ac572053c845d52a96 Mon Sep 17 00:00:00 2001 From: liutuantuan Date: Thu, 15 Aug 2024 19:16:14 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8A=E6=94=BEconvertedBuffer=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liutuantuan --- src/syscap_tool.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/syscap_tool.c b/src/syscap_tool.c index 93d3344..e5953d6 100644 --- a/src/syscap_tool.c +++ b/src/syscap_tool.c @@ -285,8 +285,10 @@ int32_t RPCIDDecode(char *inputFile, char *outputPath) ret = ConvertedContextSaveAsFile(outputPath, "rpcid.json", convertedBuffer, strlen(convertedBuffer)); if (ret != 0) { PRINT_ERR("ConvertedContextSaveAsFile failed, outputPath:%s, filename:rpcid.json\n", outputPath); + cJSON_Delete(convertedBuffer); goto FREE_RPCID_ROOT; } + cJSON_Delete(convertedBuffer); FREE_RPCID_ROOT: cJSON_Delete(rpcidRoot); -- Gitee