aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw_rua.c
diff options
context:
space:
mode:
authorDaniel Willmann <dwillmann@sysmocom.de>2016-01-07 13:19:30 +0100
committerDaniel Willmann <dwillmann@sysmocom.de>2016-01-07 13:19:30 +0100
commit11e912aa6e57ee956d45fc7545141544cdc99b91 (patch)
tree3ee99654f5d82ed6f2056faad2de40b022b63e66 /src/hnbgw_rua.c
parentb02d77c2c1cdd1bbca97e7677030d392ab4192bc (diff)
Free ies struct after use in tests and hnbgw_cn/rua
Diffstat (limited to 'src/hnbgw_rua.c')
-rw-r--r--src/hnbgw_rua.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/hnbgw_rua.c b/src/hnbgw_rua.c
index 4059cf8..a6f0100 100644
--- a/src/hnbgw_rua.c
+++ b/src/hnbgw_rua.c
@@ -301,6 +301,7 @@ static int rua_rx_init_connect(struct msgb *msg, ANY_t *in)
default:
LOGP(DRUA, LOGL_ERROR, "Unsupported Domain %u\n",
ies.cN_DomainIndicator);
+ rua_free_connecties(&ies);
return -1;
}
@@ -312,6 +313,7 @@ static int rua_rx_init_connect(struct msgb *msg, ANY_t *in)
context_id, 0, ies.ranaP_Message.buf,
ies.ranaP_Message.size);
/* FIXME: what to do with the asn1c-allocated memory */
+ rua_free_connecties(&ies);
return rc;
}
@@ -355,6 +357,7 @@ static int rua_rx_init_disconnect(struct msgb *msg, ANY_t *in)
rc = rua_to_scu(hnb, cn, OSMO_SCU_PRIM_N_DISCONNECT,
context_id, scu_cause, ranap_data, ranap_len);
/* FIXME: what to do with the asn1c-allocated memory */
+ rua_free_disconnecties(&ies);
return rc;
}
@@ -389,6 +392,7 @@ static int rua_rx_init_dt(struct msgb *msg, ANY_t *in)
context_id, 0, ies.ranaP_Message.buf,
ies.ranaP_Message.size);
/* FIXME: what to do with the asn1c-allocated memory */
+ rua_free_directtransferies(&ies);
return rc;
@@ -414,6 +418,7 @@ static int rua_rx_init_udt(struct msgb *msg, ANY_t *in)
* can ignore. In either case, it is RANAP that we need to
* decode... */
rc = hnbgw_ranap_rx(msg, ies.ranaP_Message.buf, ies.ranaP_Message.size);
+ rua_free_connectionlesstransferies(&ies);
return rc;
}
@@ -431,6 +436,7 @@ static int rua_rx_init_err_ind(struct msgb *msg, ANY_t *in)
LOGP(DRUA, LOGL_ERROR, "RUA UData.ErrorInd(%s)\n",
rua_cause_str(&ies.cause));
+ rua_free_errorindicationies(&ies);
return rc;
}