aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/libmgcp/mgcp_osmux.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@soleta.eu>2014-08-28 20:13:59 +0200
committerPablo Neira Ayuso <pablo@soleta.eu>2014-08-28 20:14:12 +0200
commit4ef66b1c5fde786c2c4fccf98250856268c250a3 (patch)
tree0f9a27dad7ead6214ffae8eba5b4d3248fad0020 /openbsc/src/libmgcp/mgcp_osmux.c
parentcaa0aace218cdf6f324e3940c42dfb952cad12c5 (diff)
osmux: fix leak in osmux_deliver()
The callback is responsible for releasing the batch message that libosmo-netif builds.
Diffstat (limited to 'openbsc/src/libmgcp/mgcp_osmux.c')
-rw-r--r--openbsc/src/libmgcp/mgcp_osmux.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsc/src/libmgcp/mgcp_osmux.c b/openbsc/src/libmgcp/mgcp_osmux.c
index b554b35b..ee794310 100644
--- a/openbsc/src/libmgcp/mgcp_osmux.c
+++ b/openbsc/src/libmgcp/mgcp_osmux.c
@@ -51,6 +51,7 @@ static void osmux_deliver(struct msgb *batch_msg, void *data)
memcpy(&out.sin_addr, &handle->rem_addr, sizeof(handle->rem_addr));
sendto(osmux_fd.fd, batch_msg->data, batch_msg->len, 0,
(struct sockaddr *)&out, sizeof(out));
+ msgb_free(batch_msg);
}
static struct osmux_handle *