From 5dc29a51efdc9fa10892e441cef9a614d5d00599 Mon Sep 17 00:00:00 2001 From: Ivan Kluchnikov Date: Mon, 4 Feb 2013 12:57:00 +0400 Subject: [PATCH] Fixed memory leaks caused by not freeing msgb in udp_read_cb() function. --- src/openbts_sock.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/openbts_sock.cpp b/src/openbts_sock.cpp index 1f1e9044..845aa774 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; }