Commit 99183b17 authored by Melissa Elkadi's avatar Melissa Elkadi

Freeing memory that wasnt allocated on heap in SA mode

parent 7d6212bb
...@@ -958,15 +958,17 @@ int nr_ue_dl_indication(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_ ...@@ -958,15 +958,17 @@ int nr_ue_dl_indication(nr_downlink_indication_t *dl_info, NR_UL_TIME_ALIGNMENT_
} }
//clean up nr_downlink_indication_t *dl_info //clean up nr_downlink_indication_t *dl_info
if(dl_info->dci_ind != NULL){ if (get_softmodem_params()->nsa) {
if (dl_info->dci_ind != NULL) {
free(dl_info->dci_ind); free(dl_info->dci_ind);
dl_info->dci_ind = NULL; dl_info->dci_ind = NULL;
} }
if(dl_info->rx_ind != NULL){ if (dl_info->rx_ind != NULL) {
free(dl_info->rx_ind); free(dl_info->rx_ind);
dl_info->rx_ind = NULL; dl_info->rx_ind = NULL;
} }
} }
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment