hotfix: clear memory after allocation

(cherry picked from commit 71dacd442d)
This commit is contained in:
Cedric Roux
2018-07-03 10:21:33 +09:00
committed by Haruki NAOI
parent ab451412de
commit e5d8179b76
+1
View File
@@ -62,6 +62,7 @@ void mac_top_init_eNB(void)
RC.mac =
(eNB_MAC_INST **) malloc16(RC.nb_macrlc_inst *
sizeof(eNB_MAC_INST *));
bzero(RC.mac, RC.nb_macrlc_inst * sizeof(eNB_MAC_INST *));
}
AssertFatal(RC.mac != NULL,
"can't ALLOCATE %zu Bytes for %d eNB_MAC_INST with size %zu \n",