Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
Anthony Liguori 2011-08-20 22:09:37 -05:00
parent 14015304b6
commit 7267c0947d
357 changed files with 1672 additions and 1674 deletions

View file

@ -204,7 +204,7 @@ void *laio_init(void)
{
struct qemu_laio_state *s;
s = qemu_mallocz(sizeof(*s));
s = g_malloc0(sizeof(*s));
s->efd = eventfd(0, 0);
if (s->efd == -1)
goto out_free_state;
@ -221,6 +221,6 @@ void *laio_init(void)
out_close_efd:
close(s->efd);
out_free_state:
qemu_free(s);
g_free(s);
return NULL;
}