fix several not tested malloc or calloc return value

This commit is contained in:
Laurent THOMAS
2025-09-09 18:04:26 +02:00
committed by Robert Schmidt
parent d372aa1b50
commit 278d2cbca1
13 changed files with 84 additions and 93 deletions
+3 -3
View File
@@ -63,9 +63,9 @@ void lte_param_init(PHY_VARS_eNB **eNBp,
PHY_VARS_UE *UE;
RU_t *ru;
printf("Start lte_param_init\n");
*eNBp = malloc(sizeof(PHY_VARS_eNB));
*UEp = malloc(sizeof(PHY_VARS_UE));
*rup = malloc(sizeof(RU_t));
*eNBp = malloc_or_fail(sizeof(PHY_VARS_eNB));
*UEp = malloc_or_fail(sizeof(PHY_VARS_UE));
*rup = malloc_or_fail(sizeof(RU_t));
eNB = *eNBp;
UE = *UEp;
ru = *rup;