lu_fsm: fix memleak in lu_fsm_wait_insert_data_result()

Currently osmo-hlr leaks memory (msgb holding 1203 bytes of data and
a struct osmo_gsup_req) on receipt of OSMO_GSUP_MSGT_INSERT_DATA_ERROR.

Change-Id: I4c70a06169158c869360707a7a62436dbf13b9b3
This commit is contained in:
Vadim Yanitskiy 2023-07-05 00:15:11 +07:00
parent f4159bd54c
commit 1c23f304d1
1 changed files with 1 additions and 0 deletions

View File

@ -275,6 +275,7 @@ void lu_fsm_wait_insert_data_result(struct osmo_fsm_inst *fi, uint32_t event, vo
case OSMO_GSUP_MSGT_INSERT_DATA_ERROR:
lu_failure(lu, GMM_CAUSE_NET_FAIL, "Rx %s", osmo_gsup_message_type_name(req->gsup.message_type));
osmo_gsup_req_free(req);
break;
default: