From e67ed4eaf7d78ec2e592f6c9018ae68ac5113cd7 Mon Sep 17 00:00:00 2001 From: liutuantuan Date: Wed, 29 May 2024 18:01:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug=E9=97=AE=E9=A2=98?= 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, 1 insertion(+), 1 deletion(-) diff --git a/src/syscap_tool.c b/src/syscap_tool.c index 5663b64..18414a2 100644 --- a/src/syscap_tool.c +++ b/src/syscap_tool.c @@ -182,7 +182,7 @@ int32_t RPCIDEncode(char *inputFile, char *outputPath) if (FillOsCapLength(convertedBuffer, contextBuffer, gJsonObjectSysCap, sysCapSize, ret) == -1) { return FreeAfterRPCIDEncode(gJsonObjectSysCap.cjsonObjectRoot, convertedBuffer, contextBuffer, - FREE_CONVERT_OUT_RPCID_ENCODE, ret); + FREE_CONVERT_OUT_RPCID_ENCODE, -1); } if (ConvertedContextSaveAsFile(outputPath, "rpcid.sc", convertedBuffer, convertedBufLen) != 0) { PRINT_ERR("ConvertedContextSaveAsFile failed, outputPath:%s, filename:rpcid.sc\n", outputPath);