From a73c9c23e1b8f0f519a4a16dd01cf3cdea94853b Mon Sep 17 00:00:00 2001 From: tongkai0808fh Date: Mon, 1 Jul 2024 09:03:21 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=20interfaces/inner=5Fapi/sys?= =?UTF-8?q?cap=5Finterface.c=E6=96=87=E4=BB=B6614=E8=A1=8Cfree=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tongkai0808fh --- interfaces/inner_api/syscap_interface.c | 1 - 1 file changed, 1 deletion(-) diff --git a/interfaces/inner_api/syscap_interface.c b/interfaces/inner_api/syscap_interface.c index 3e3384f..ca92b97 100644 --- a/interfaces/inner_api/syscap_interface.c +++ b/interfaces/inner_api/syscap_interface.c @@ -611,7 +611,6 @@ static int32_t ComparePcidWithPriSyscap(struct PcidPriSyscapInfo pcidPriSyscapIn if (temp == NULL) { PRINT_ERR("malloc failed.\n"); FreeCompareError(result); - free(temp); return -1; } pcidPriSyscapInfo.ret = strcpy_s(temp, sizeof(char) * SINGLE_SYSCAP_LEN,