Fixed memory leaks caused by not freeing msgb in udp_read_cb() function.
This commit is contained in:
parent
3afe56d7d8
commit
5dc29a51ef
|
@ -112,6 +112,7 @@ static int udp_read_cb(struct osmo_fd *ofd)
|
||||||
|
|
||||||
struct gsm_pcu_if *pcu_prim = (gsm_pcu_if *)(msg->l1h);
|
struct gsm_pcu_if *pcu_prim = (gsm_pcu_if *)(msg->l1h);
|
||||||
rc = pcu_rx(pcu_prim->msg_type, pcu_prim);
|
rc = pcu_rx(pcu_prim->msg_type, pcu_prim);
|
||||||
|
msgb_free(msg);
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue