diff options
author | Anthony Liguori | 2011-08-21 05:09:37 +0200 |
---|---|---|
committer | Anthony Liguori | 2011-08-21 06:01:08 +0200 |
commit | 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c (patch) | |
tree | 9aa05d6e05ed83e67bf014f6745a3081b8407dc5 /hw/9pfs/virtio-9p-xattr.c | |
parent | Make glib mandatory and fixup utils appropriately (diff) | |
download | qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.gz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.tar.xz qemu-7267c0947d7e8ae5dff7bafd932c3bc285f43e5c.zip |
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>
Diffstat (limited to 'hw/9pfs/virtio-9p-xattr.c')
-rw-r--r-- | hw/9pfs/virtio-9p-xattr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/9pfs/virtio-9p-xattr.c b/hw/9pfs/virtio-9p-xattr.c index bde0b7fb4f..7f08f6e176 100644 --- a/hw/9pfs/virtio-9p-xattr.c +++ b/hw/9pfs/virtio-9p-xattr.c @@ -79,7 +79,7 @@ ssize_t v9fs_list_xattr(FsContext *ctx, const char *path, } /* Now fetch the xattr and find the actual size */ - orig_value = qemu_malloc(xattr_len); + orig_value = g_malloc(xattr_len); xattr_len = llistxattr(rpath(ctx, path, buffer), orig_value, xattr_len); /* store the orig pointer */ @@ -111,7 +111,7 @@ next_entry: } err_out: - qemu_free(orig_value_start); + g_free(orig_value_start); return size; } |