aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/test-hnbap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/test-hnbap.c')
-rw-r--r--src/tests/test-hnbap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/tests/test-hnbap.c b/src/tests/test-hnbap.c
index 463b4d4..c6e7d94 100644
--- a/src/tests/test-hnbap.c
+++ b/src/tests/test-hnbap.c
@@ -120,6 +120,8 @@ void test_asn1_decoding(void)
ASSERT(!strcmp((char *) hnb_ies.hnB_Identity.hNB_Identity_Info.buf, "10005B9-0010942050@"));
printf("HNBAP register request for HNB %s\n", (char *) hnb_ies.hnB_Identity.hNB_Identity_Info.buf);
+ hnbap_free_hnbregisterrequesties(&hnb_ies);
+
dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu,
hnbap_ue_reg_req, sizeof(hnbap_ue_reg_req), 0, 0);
@@ -138,6 +140,7 @@ void test_asn1_decoding(void)
ue_req_ies.uE_Identity.choice.iMSI.size);
printf("HNBAP UE Register request from IMSI %s\n", imsi);
+ hnbap_free_ueregisterrequesties(&ue_req_ies);
memset(pdu, 0, sizeof(*pdu));
dec_ret = aper_decode(NULL, &asn_DEF_HNBAP_PDU, (void **) &pdu,
@@ -158,6 +161,7 @@ void test_asn1_decoding(void)
ue_acc_ies.uE_Identity.choice.iMSI.size);
printf("HNBAP UE Register accept to IMSI %s\n", imsi);
+ hnbap_free_ueregisteraccepties(&ue_acc_ies);
}