Commit 62fd56f9 authored by Robert Schmidt's avatar Robert Schmidt

DCCH free memory

parent 567ab391
...@@ -1384,7 +1384,7 @@ static inline uint64_t bitStr_to_uint64(BIT_STRING_t *asn) { ...@@ -1384,7 +1384,7 @@ static inline uint64_t bitStr_to_uint64(BIT_STRING_t *asn) {
return result; return result;
} }
static void rrc_gNB_process_MeasurementReport(rrc_gNB_ue_context_t *ue_context, const NR_MeasurementReport_t *measurementReport) static void rrc_gNB_process_MeasurementReport(rrc_gNB_ue_context_t *ue_context, NR_MeasurementReport_t *measurementReport)
{ {
if (LOG_DEBUGFLAG(DEBUG_ASN1)) if (LOG_DEBUGFLAG(DEBUG_ASN1))
xer_fprint(stdout, &asn_DEF_NR_MeasurementReport, (void *)measurementReport); xer_fprint(stdout, &asn_DEF_NR_MeasurementReport, (void *)measurementReport);
...@@ -1393,14 +1393,15 @@ static void rrc_gNB_process_MeasurementReport(rrc_gNB_ue_context_t *ue_context, ...@@ -1393,14 +1393,15 @@ static void rrc_gNB_process_MeasurementReport(rrc_gNB_ue_context_t *ue_context,
&& measurementReport->criticalExtensions.choice.measurementReport != NULL); && measurementReport->criticalExtensions.choice.measurementReport != NULL);
gNB_RRC_UE_t *ue_ctxt = &ue_context->ue_context; gNB_RRC_UE_t *ue_ctxt = &ue_context->ue_context;
if (ue_ctxt->measResults != NULL) { ASN_STRUCT_FREE(asn_DEF_NR_MeasResults, ue_ctxt->measResults);
ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_NR_MeasResults, ue_ctxt->measResults);
ue_ctxt->measResults = NULL; ue_ctxt->measResults = NULL;
}
const NR_MeasId_t id = measurementReport->criticalExtensions.choice.measurementReport->measResults.measId; const NR_MeasId_t id = measurementReport->criticalExtensions.choice.measurementReport->measResults.measId;
AssertFatal(id, "unexpected MeasResult for MeasurementId %ld received\n", id); AssertFatal(id, "unexpected MeasResult for MeasurementId %ld received\n", id);
asn1cCallocOne(ue_ctxt->measResults, measurementReport->criticalExtensions.choice.measurementReport->measResults); asn1cCallocOne(ue_ctxt->measResults, measurementReport->criticalExtensions.choice.measurementReport->measResults);
/* we "keep" the measurement report, so set to 0 */
free(measurementReport->criticalExtensions.choice.measurementReport);
measurementReport->criticalExtensions.choice.measurementReport = NULL;
} }
static int handle_rrcReestablishmentComplete(const protocol_ctxt_t *const ctxt_pP, static int handle_rrcReestablishmentComplete(const protocol_ctxt_t *const ctxt_pP,
......
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