e2ap: freeing heap allocated random object

master
yagoda 2 years ago committed by Justin Tallon
parent 7251d4dcd2
commit 45a04b715c

@ -35,7 +35,7 @@ public:
static const uint32_t revision; static const uint32_t revision;
e2sm_kpm(srslog::basic_logger& logger_, srsran::task_scheduler* _task_sched_ptr); e2sm_kpm(srslog::basic_logger& logger_, srsran::task_scheduler* _task_sched_ptr);
~e2sm_kpm() = default; ~e2sm_kpm();
virtual bool generate_ran_function_description(RANfunction_description& desc, ra_nfunction_item_s& ran_func); virtual bool generate_ran_function_description(RANfunction_description& desc, ra_nfunction_item_s& ran_func);
virtual bool process_ric_event_trigger_definition(ricsubscription_request_s subscription_request, virtual bool process_ric_event_trigger_definition(ricsubscription_request_s subscription_request,

@ -49,6 +49,10 @@ e2sm_kpm::e2sm_kpm(srslog::basic_logger& logger_, srsran::task_scheduler* _task_
} }
} }
e2sm_kpm::~e2sm_kpm()
{
srsran_random_free(random_gen);
}
bool e2sm_kpm::generate_ran_function_description(RANfunction_description& desc, ra_nfunction_item_s& ran_func) bool e2sm_kpm::generate_ran_function_description(RANfunction_description& desc, ra_nfunction_item_s& ran_func)
{ {
desc.function_shortname = short_name; desc.function_shortname = short_name;

Loading…
Cancel
Save