mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07: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
|
|
@ -22,7 +22,7 @@ int v9fs_co_readlink(V9fsState *s, V9fsString *path, V9fsString *buf)
|
|||
int err;
|
||||
ssize_t len;
|
||||
|
||||
buf->data = qemu_malloc(PATH_MAX);
|
||||
buf->data = g_malloc(PATH_MAX);
|
||||
v9fs_co_run_in_worker(
|
||||
{
|
||||
len = s->ops->readlink(&s->ctx, path->data,
|
||||
|
|
@ -36,7 +36,7 @@ int v9fs_co_readlink(V9fsState *s, V9fsString *path, V9fsString *buf)
|
|||
}
|
||||
});
|
||||
if (err) {
|
||||
qemu_free(buf->data);
|
||||
g_free(buf->data);
|
||||
buf->data = NULL;
|
||||
buf->size = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue