fix: kora工具检视问题修复
【背景】kora工具检视问题修复 【修改方案】 1,对部分代码问题进行整改 【影响】 对现有的产品编译不会有影响。 Signed-off-by: wangchen <wangchen64@huawei.com> Change-Id: Iafc58b7c71e5d139e11a0ae9d98ca5a57fc6549f
This commit is contained in:
@@ -55,7 +55,14 @@ static void ChildFunc()
|
||||
ent.sigev_signo = SIGUSR1;
|
||||
|
||||
tid2 = (timer_t *)malloc(sizeof(UINTPTR) * 1024);
|
||||
if (tid2 == NULL) {
|
||||
return;
|
||||
}
|
||||
ret1 = (int *)malloc(sizeof(int) * 1024);
|
||||
if (ret1 == NULL) {
|
||||
free(tid2);
|
||||
return;
|
||||
}
|
||||
(void)memset_s(tid2, sizeof(char *) * 1024, 0, sizeof(char *) * 1024);
|
||||
(void)memset_s(ret1, sizeof(int) * 1024, 0xff, sizeof(int) * 1024);
|
||||
while (i < 1024) {
|
||||
|
||||
Reference in New Issue
Block a user