diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2015-12-22 16:25:29 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2015-12-22 16:40:46 +0100 |
commit | 541e429a39c5bf7120471e85f56c69e2f162b098 (patch) | |
tree | 3e4dd6a36fb4a69cde8aea2f59f2147f2390bd30 | |
parent | d174e76f1dc53e4ae56ae289a4e360c82d520b92 (diff) |
hnbgw_hnbap.c: Clean up after encoding a UE register accept
Need to free the ASN.1 structs after using them to encode the UE
register accept message.
-rw-r--r-- | src/hnbgw_hnbap.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index fb59ad2..0b8e3e4 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -104,6 +104,10 @@ static int hnbgw_tx_ue_register_acc(struct ue_context *ue) Criticality_reject, &asn_DEF_UERegisterAccept, &accept_out); + + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_OCTET_STRING, &accept.uE_Identity.choice.iMSI); + ASN_STRUCT_FREE_CONTENTS_ONLY(asn_DEF_UERegisterAccept, &accept_out); + return hnbgw_hnbap_tx(ue->hnb, msg); } |