diff --git a/targets/RT/USER/nr-gnb.c b/targets/RT/USER/nr-gnb.c index a9e4e58f42..b497666d1b 100644 --- a/targets/RT/USER/nr-gnb.c +++ b/targets/RT/USER/nr-gnb.c @@ -949,7 +949,7 @@ void init_gNB(int single_thread_flag,int wait_for_sync) { void stop_gNB(int nb_inst) { - for (int inst=0;instconfigured = 0; } @@ -1257,7 +1257,7 @@ int main( int argc, char **argv ) /* release memory used by the RU/gNB threads (incomplete), after all * threads have been stopped (they partially use the same memory) */ for (int inst = 0; inst < NB_gNB_INST; inst++) { - for (int cc_id = 0; cc_id < RC.nb_CC[inst]; cc_id++) { + for (int cc_id = 0; cc_id < RC.nb_nr_CC[inst]; cc_id++) { //free_transport(RC.gNB[inst][cc_id]); phy_free_nr_gNB(RC.gNB[inst][cc_id]); }