[SMF] Memory leak in Handling APCO IE (#3010)

This commit is contained in:
Sukchan Lee 2024-02-28 20:51:20 +09:00
parent 32de75b1a5
commit 4d7f2fb661
2 changed files with 3 additions and 0 deletions

View File

@ -1682,6 +1682,7 @@ void smf_sess_remove(smf_sess_t *sess)
ogs_fsm_fini(&sess->sm, &e);
OGS_TLV_CLEAR_DATA(&sess->gtp.ue_pco);
OGS_TLV_CLEAR_DATA(&sess->gtp.ue_apco);
OGS_TLV_CLEAR_DATA(&sess->gtp.ue_epco);
OGS_TLV_CLEAR_DATA(&sess->gtp.user_location_information);
OGS_TLV_CLEAR_DATA(&sess->gtp.ue_timezone);

View File

@ -45,6 +45,8 @@ void test_s2b_handle_create_session_response(
cause_value = cause->value;
if (cause_value == OGS_GTP2_CAUSE_REQUEST_ACCEPTED) {
} else if (cause_value ==
OGS_GTP2_CAUSE_NEW_PDN_TYPE_DUE_TO_NETWORK_PREFERENCE) {
} else {
ogs_error("GTP Failed [CAUSE:%d]", cause_value);
return;