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
caa0aace21
commit
4ef66b1c5f
|
@ -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 *
|
||||
|
|
Loading…
Reference in New Issue