mirror of
https://github.com/openharmony/developtools_syscap_codec.git
synced 2026-08-27 02:11:19 -04:00
[Bug]: 告警处理,清理没有释放的内存 https://gitee.com/openharmony/developtools_syscap_codec/issues/ICRCLU
Signed-off-by: xuezhou_yan <yangang20@huawei.com>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user