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.
This commit is contained in:
Daniel Willmann 2015-12-22 16:25:29 +01:00
parent d174e76f1d
commit 541e429a39
1 changed files with 4 additions and 0 deletions

View File

@ -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);
}