Commit 61c16ddb authored by r.karey's avatar r.karey

fixed memory leaks

parent 2019fe5d
...@@ -1201,7 +1201,8 @@ void extract_pucch_csi_report (NR_CSI_MeasConfig_t *csi_MeasConfig, ...@@ -1201,7 +1201,8 @@ void extract_pucch_csi_report (NR_CSI_MeasConfig_t *csi_MeasConfig,
if ( !(reportQuantity_type)) if ( !(reportQuantity_type))
AssertFatal(reportQuantity_type, "reportQuantity is not configured"); AssertFatal(reportQuantity_type, "reportQuantity is not configured");
free(payload);
payload = NULL;
#if 0 #if 0
if ( NR_CSI_ReportConfig__reportQuantity_PR_cri_RI_PMI_CQI == reportQuantity_type || if ( NR_CSI_ReportConfig__reportQuantity_PR_cri_RI_PMI_CQI == reportQuantity_type ||
......
...@@ -130,6 +130,8 @@ void handle_nr_uci(NR_UL_IND_t *UL_info, NR_UE_sched_ctrl_t *sched_ctrl, NR_mac_ ...@@ -130,6 +130,8 @@ void handle_nr_uci(NR_UL_IND_t *UL_info, NR_UE_sched_ctrl_t *sched_ctrl, NR_mac_
} }
sched_ctrl->sr_req.nr_of_srs = uci_pdu->sr.sr_bit_len; sched_ctrl->sr_req.nr_of_srs = uci_pdu->sr.sr_bit_len;
free(payload);
payload = NULL;
} }
if(uci_pdu->pduBitmap & 0x02) if(uci_pdu->pduBitmap & 0x02)
......
This diff is collapsed.
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