fixed the memory leak in test program

This commit is contained in:
Sukchan Lee 2022-07-20 12:08:17 +09:00
parent fb95f1ff71
commit da1905b36c
3 changed files with 2 additions and 10 deletions

View File

@ -101,8 +101,8 @@ void app_terminate(void)
if (udm_thread) ogs_thread_destroy(udm_thread);
if (ausf_thread) ogs_thread_destroy(ausf_thread);
if (scp_thread) ogs_thread_destroy(scp_thread);
if (nrf_thread) ogs_thread_destroy(nrf_thread);
if (scp_thread) ogs_thread_destroy(scp_thread);
}
void test_5gc_init(void)

View File

@ -123,8 +123,8 @@ void app_terminate(void)
if (hss_thread) ogs_thread_destroy(hss_thread);
if (pcrf_thread) ogs_thread_destroy(pcrf_thread);
if (scp_thread) ogs_thread_destroy(scp_thread);
if (nrf_thread) ogs_thread_destroy(nrf_thread);
if (scp_thread) ogs_thread_destroy(scp_thread);
}
void test_app_init(void)

View File

@ -676,14 +676,6 @@ static void test3_func(abts_case *tc, void *data)
gmmbuf = testgmm_build_registration_request(test_ue, NULL, false, false);
ABTS_PTR_NOTNULL(tc, gmmbuf);
test_ue->registration_request_param.gmm_capability = 1;
test_ue->registration_request_param.s1_ue_network_capability = 1;
test_ue->registration_request_param.requested_nssai = 1;
test_ue->registration_request_param.last_visited_registered_tai = 1;
test_ue->registration_request_param.ue_usage_setting = 1;
nasbuf = testgmm_build_registration_request(test_ue, NULL, false, false);
ABTS_PTR_NOTNULL(tc, nasbuf);
sendbuf = testngap_build_initial_ue_message(test_ue, gmmbuf,
NGAP_RRCEstablishmentCause_mo_Signalling, false, true);
ABTS_PTR_NOTNULL(tc, sendbuf);