aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Kluchnikov <kluchnikovi@gmail.com>2013-02-04 12:57:00 +0400
committerIvan Kluchnikov <kluchnikovi@gmail.com>2013-02-04 12:57:00 +0400
commit5dc29a51efdc9fa10892e441cef9a614d5d00599 (patch)
tree9807d0ec895a5d145078a9667964206a52e3fd0b
parent3afe56d7d8d63d64ec3afb7d3d3b1490426bdfa2 (diff)
Fixed memory leaks caused by not freeing msgb in udp_read_cb() function.
-rw-r--r--src/openbts_sock.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openbts_sock.cpp b/src/openbts_sock.cpp
index 1f1e904..845aa77 100644
--- a/src/openbts_sock.cpp
+++ b/src/openbts_sock.cpp
@@ -112,6 +112,7 @@ static int udp_read_cb(struct osmo_fd *ofd)
struct gsm_pcu_if *pcu_prim = (gsm_pcu_if *)(msg->l1h);
rc = pcu_rx(pcu_prim->msg_type, pcu_prim);
+ msgb_free(msg);
return rc;
}