osmux: fix leak in osmux_deliver()
The callback is responsible for releasing the batch message that libosmo-netif builds.
This commit is contained in:
parent
7ccbef14fc
commit
6b6414e1df
|
@ -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));
|
memcpy(&out.sin_addr, &handle->rem_addr, sizeof(handle->rem_addr));
|
||||||
sendto(osmux_fd.fd, batch_msg->data, batch_msg->len, 0,
|
sendto(osmux_fd.fd, batch_msg->data, batch_msg->len, 0,
|
||||||
(struct sockaddr *)&out, sizeof(out));
|
(struct sockaddr *)&out, sizeof(out));
|
||||||
|
msgb_free(batch_msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct osmux_handle *
|
static struct osmux_handle *
|
||||||
|
|
Loading…
Reference in New Issue