osmux: fix leak in osmux_deliver()

The callback is responsible for releasing the batch message that
libosmo-netif builds.
This commit is contained in:
Pablo Neira Ayuso 2014-08-28 20:13:59 +02:00
parent caa0aace21
commit 4ef66b1c5f
1 changed files with 1 additions and 0 deletions

View File

@ -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 *