diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2018-07-11 02:29:34 +0200 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-07-11 02:35:29 +0200 |
commit | 37169067b7b5a03d824cf9e2c59418953eeca5d4 (patch) | |
tree | 8978d8d8928fc6fe7bc2980aa240ad7a5e144460 /src/ipa.c | |
parent | 15ffba535ba0e6b81411ad5726630c5934dece50 (diff) |
fix memleak in ipa_rx_msg_sccp
After m3ua_xfer_from_data() has copied the msgb data, we need to free the msgb.
Change-Id: I2263751c0aa3ae32455847c7622af8be0a1e7802
Diffstat (limited to 'src/ipa.c')
-rw-r--r-- | src/ipa.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -258,6 +258,7 @@ static int ipa_rx_msg_sccp(struct osmo_ss7_asp *asp, struct msgb *msg) data_hdr.dpc = osmo_htonl(dpc); /* Create M3UA message in XUA structure */ xua = m3ua_xfer_from_data(&data_hdr, msgb_l2(msg), msgb_l2len(msg)); + msgb_free(msg); /* Update xua->mtp with values from data_hdr */ m3ua_dh_to_xfer_param(&xua->mtp, &data_hdr); |