mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
lazy-pages: use xfree() instead of free()
Although they are the same, xfree() looks more consistent with other code Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
4fb0935f54
commit
c23f16c28a
@ -150,7 +150,7 @@ static void lpi_fini(struct lazy_pages_info *lpi)
|
|||||||
{
|
{
|
||||||
if (!lpi)
|
if (!lpi)
|
||||||
return;
|
return;
|
||||||
free(lpi->buf);
|
xfree(lpi->buf);
|
||||||
free_iovs(lpi);
|
free_iovs(lpi);
|
||||||
if (lpi->lpfd.fd > 0)
|
if (lpi->lpfd.fd > 0)
|
||||||
close(lpi->lpfd.fd);
|
close(lpi->lpfd.fd);
|
||||||
@ -158,7 +158,7 @@ static void lpi_fini(struct lazy_pages_info *lpi)
|
|||||||
lpi->parent->num_children--;
|
lpi->parent->num_children--;
|
||||||
if (!lpi->parent && !lpi->num_children && lpi->pr.close)
|
if (!lpi->parent && !lpi->num_children && lpi->pr.close)
|
||||||
lpi->pr.close(&lpi->pr);
|
lpi->pr.close(&lpi->pr);
|
||||||
free(lpi);
|
xfree(lpi);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int prepare_sock_addr(struct sockaddr_un *saddr)
|
static int prepare_sock_addr(struct sockaddr_un *saddr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user