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 --- target-ppc/kvm_ppc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-ppc/kvm_ppc.c') diff --git a/target-ppc/kvm_ppc.c b/target-ppc/kvm_ppc.c index 536fcabd41..867dc1d17d 100644 --- a/target-ppc/kvm_ppc.c +++ b/target-ppc/kvm_ppc.c @@ -32,7 +32,7 @@ int kvmppc_read_host_property(const char *node_path, const char *prop, pathlen = snprintf(NULL, 0, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop) + 1; - path = qemu_malloc(pathlen); + path = g_malloc(pathlen); snprintf(path, pathlen, "%s/%s/%s", PROC_DEVTREE_PATH, node_path, prop); -- cgit v1.2.3