Signed-off-by: xuezhou_yan <yangang20@huawei.com>
This commit is contained in:
xuezhou_yan
2025-08-05 19:54:30 +08:00
parent 599a30b58f
commit 5bdb4953e6
+7
View File
@@ -750,5 +750,12 @@ int32_t ComparePcidWithRpcidString(char *pcidFile, char *rpcidFile, uint32_t typ
printf("Fail! The pcid does not meet the rpcid\n");
}
if (type == TYPE_FILE) {
FreePointerMemory(pcidContent, rpcidContent, pcidPriSyscap, rpcidPriSyscap);
} else if (type == TYPE_STRING) {
SafeFree(pcidPriSyscap);
SafeFree(rpcidPriSyscap);
}
return 0;
}