Revert "fix memleaks in mtp_user_prim_cb()"

This reverts commit ffb248dd78.

Reason for revert: ttcn-msc-tests fail, apparently there are lots more
xua_msg_free() in scrc_rx_mtp_xfer_ind_xua() that need to be dropped

Change-Id: I008bcb6d5bad9e6347e7cd670159816f51331189
This commit is contained in:
Neels Hofmeyr 2020-01-08 19:20:21 +00:00
parent ffb248dd78
commit a468af2c64
2 changed files with 2 additions and 1 deletions

View File

@ -1413,6 +1413,7 @@ 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 */
@ -1450,6 +1451,7 @@ 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 */

View File

@ -174,7 +174,6 @@ 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",