mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-24 08:33:47 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23c623b487 | ||
|
|
1a099fd34c |
7
debian/changelog
vendored
7
debian/changelog
vendored
@@ -1,3 +1,10 @@
|
|||||||
|
osmo-mgw (1.9.1) unstable; urgency=medium
|
||||||
|
|
||||||
|
[ Vadim Yanitskiy ]
|
||||||
|
* libosmo-mgcp: e1: fix memleaks in e1_recv_cb()
|
||||||
|
|
||||||
|
-- Harald Welte <laforge@osmocom.org> Mon, 18 Apr 2022 10:58:50 +0200
|
||||||
|
|
||||||
osmo-mgw (1.9.0) unstable; urgency=medium
|
osmo-mgw (1.9.0) unstable; urgency=medium
|
||||||
|
|
||||||
[ Harald Welte ]
|
[ Harald Welte ]
|
||||||
|
|||||||
@@ -338,6 +338,7 @@ static void e1_recv_cb(struct e1inp_ts *ts, struct msgb *msg)
|
|||||||
trunk = mgcp_trunk_by_line_num(cfg, ts->line->num);
|
trunk = mgcp_trunk_by_line_num(cfg, ts->line->num);
|
||||||
if (!trunk) {
|
if (!trunk) {
|
||||||
LOGP(DE1, LOGL_ERROR, "E1-RX: unable to find a trunk for E1-line %u!\n", ts->line->num);
|
LOGP(DE1, LOGL_ERROR, "E1-RX: unable to find a trunk for E1-line %u!\n", ts->line->num);
|
||||||
|
msgb_free(msg);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -359,6 +360,9 @@ static void e1_recv_cb(struct e1inp_ts *ts, struct msgb *msg)
|
|||||||
|
|
||||||
/* Trigger sending of pending E1 traffic */
|
/* Trigger sending of pending E1 traffic */
|
||||||
e1_send(ts, trunk);
|
e1_send(ts, trunk);
|
||||||
|
|
||||||
|
/* e1inp_rx_ts() does not free() msgb */
|
||||||
|
msgb_free(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int e1_init(struct mgcp_trunk *trunk, uint8_t ts_nr)
|
static int e1_init(struct mgcp_trunk *trunk, uint8_t ts_nr)
|
||||||
|
|||||||
Reference in New Issue
Block a user