Free ies struct after use in tests and hnbgw_cn/rua
diff --git a/src/tests/hnb-test.c b/src/tests/hnb-test.c
index e2fa2ed..35700c2 100644
--- a/src/tests/hnb-test.c
+++ b/src/tests/hnb-test.c
@@ -140,6 +140,7 @@
hnb->rnc_id = accept.rnc_id;
printf("HNB Register accept with RNC ID %u\n", hnb->rnc_id);
+ hnbap_free_hnbregisteraccepties(&accept);
return 0;
}
@@ -167,6 +168,7 @@
printf("UE Register accept for IMSI %s, context %u\n", imsi, ctx_id);
hnb->ctx_id = ctx_id;
+ hnbap_free_ueregisteraccepties(&accept);
return 0;
}