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:
parent
d174e76f1d
commit
541e429a39
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue