Freeing memory that wasnt allocated on heap in SA mode
This commit is contained in:
@@ -958,13 +958,15 @@ int nr_ue_dl_indication(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_
|
||||
}
|
||||
|
||||
//clean up nr_downlink_indication_t *dl_info
|
||||
if(dl_info->dci_ind != NULL){
|
||||
free(dl_info->dci_ind);
|
||||
dl_info->dci_ind = NULL;
|
||||
}
|
||||
if(dl_info->rx_ind != NULL){
|
||||
free(dl_info->rx_ind);
|
||||
dl_info->rx_ind = NULL;
|
||||
if (get_softmodem_params()->nsa) {
|
||||
if (dl_info->dci_ind != NULL) {
|
||||
free(dl_info->dci_ind);
|
||||
dl_info->dci_ind = NULL;
|
||||
}
|
||||
if (dl_info->rx_ind != NULL) {
|
||||
free(dl_info->rx_ind);
|
||||
dl_info->rx_ind = NULL;
|
||||
}
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user