From b20e4504eb37b5577501a646ec40526fa5142df6 Mon Sep 17 00:00:00 2001 From: liutuantuan Date: Sat, 27 Jul 2024 15:46:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=94=A8=E8=A7=84=E8=8C=83=E6=95=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liutuantuan --- src/context_tool.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/context_tool.c b/src/context_tool.c index 5d0eba1..1440a6b 100644 --- a/src/context_tool.c +++ b/src/context_tool.c @@ -155,6 +155,7 @@ int32_t CheckRpcidFormat(const char *inputFile, char **buffer, uint32_t *len) } if (bufferLen < (2 * sizeof(uint32_t))) { // 2, header of rpcid.sc PRINT_ERR("Parse file failed(format is invalid), input file : %s\n", inputFile); + free(contextBuffer); return -1; } rpcidHeader = (RPCIDHead *)contextBuffer;