aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sccp_scoc.c2
-rw-r--r--src/sccp_user.c1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/sccp_scoc.c b/src/sccp_scoc.c
index 7570764..e2768ea 100644
--- a/src/sccp_scoc.c
+++ b/src/sccp_scoc.c
@@ -1413,7 +1413,6 @@ static void tx_coerr_from_xua(struct osmo_sccp_instance *inst,
/* sent to SCRC for transmission */
sccp_scrc_rx_scoc_conn_msg(inst, xua);
- xua_msg_free(xua);
}
/* Generate a RELCO based in input arguments */
@@ -1451,7 +1450,6 @@ static void tx_relco_from_xua(struct osmo_sccp_instance *inst,
/* send to SCRC for transmission */
sccp_scrc_rx_scoc_conn_msg(inst, xua);
- xua_msg_free(xua);
}
/* Generate a RLSD based in input arguments */
diff --git a/src/sccp_user.c b/src/sccp_user.c
index 929445f..49cc212 100644
--- a/src/sccp_user.c
+++ b/src/sccp_user.c
@@ -174,6 +174,7 @@ static int mtp_user_prim_cb(struct osmo_prim_hdr *oph, void *ctx)
xua->mtp = omp->u.transfer;
/* hand this primitive into SCCP via the SCRC code */
rc = scrc_rx_mtp_xfer_ind_xua(inst, xua);
+ xua_msg_free(xua);
break;
default:
LOGP(DLSCCP, LOGL_ERROR, "Unknown primitive %u:%u receivd\n",