mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-28 04:43:54 -06:00
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:
parent
14015304b6
commit
7267c0947d
357 changed files with 1672 additions and 1674 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue