From 7267c0947d7e8ae5dff7bafd932c3bc285f43e5c Mon Sep 17 00:00:00 2001 From: Anthony Liguori Date: Sat, 20 Aug 2011 22:09:37 -0500 Subject: Use glib memory allocation and free functions qemu_malloc/qemu_free no longer exist after this commit. Signed-off-by: Anthony Liguori --- hw/9pfs/virtio-9p-xattr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/9pfs/virtio-9p-xattr.c') 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; } -- cgit 1.4.1