aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/rua_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/rua_helper.c')
-rw-r--r--src/tests/rua_helper.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/tests/rua_helper.c b/src/tests/rua_helper.c
index 70e7724..d1dcbf6 100644
--- a/src/tests/rua_helper.c
+++ b/src/tests/rua_helper.c
@@ -58,8 +58,6 @@ struct msgb *rua_new_conn(int is_ps, uint32_t context_id, struct msgb *inmsg)
if (rc < 0)
return NULL;
- msgb_free(inmsg);
-
msg = rua_generate_initiating_message(RUA_ProcedureCode_id_Connect,
RUA_Criticality_reject,
&asn_DEF_RUA_Connect,
@@ -96,8 +94,6 @@ struct msgb *rua_new_dt(int is_ps, uint32_t context_id, struct msgb *inmsg)
if (rc < 0)
return NULL;
- msgb_free(inmsg);
-
msg = rua_generate_initiating_message(RUA_ProcedureCode_id_DirectTransfer,
RUA_Criticality_reject,
&asn_DEF_RUA_DirectTransfer,
@@ -132,16 +128,14 @@ struct msgb *rua_new_disc(int is_ps, uint32_t context_id, struct msgb *inmsg)
if (inmsg && inmsg->data&& msgb_length(inmsg)) {
ies.presenceMask |= DISCONNECTIES_RUA_RANAP_MESSAGE_PRESENT;
OCTET_STRING_fromBuf(&ies.ranaP_Message.buf, inmsg->data, msgb_length(inmsg));
- msgb_free(inmsg);
}
+ msgb_free(inmsg);
memset(&out, 0, sizeof(out));
rc = rua_encode_disconnecties(&out, &ies);
if (rc < 0)
return NULL;
- msgb_free(inmsg);
-
msg = rua_generate_initiating_message(RUA_ProcedureCode_id_Disconnect,
RUA_Criticality_reject,
&asn_DEF_RUA_Disconnect,