Commit 24c17e51 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

lazy-pages: use xfree() instead of free()

Although they are the same, xfree() looks more consistent with other code
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 4daaef02
......@@ -150,7 +150,7 @@ static void lpi_fini(struct lazy_pages_info *lpi)
{
if (!lpi)
return;
free(lpi->buf);
xfree(lpi->buf);
free_iovs(lpi);
if (lpi->lpfd.fd > 0)
close(lpi->lpfd.fd);
......@@ -158,7 +158,7 @@ static void lpi_fini(struct lazy_pages_info *lpi)
lpi->parent->num_children--;
if (!lpi->parent && !lpi->num_children && lpi->pr.close)
lpi->pr.close(&lpi->pr);
free(lpi);
xfree(lpi);
}
static int prepare_sock_addr(struct sockaddr_un *saddr)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment