diff options
Diffstat (limited to 'hw/xen_devconfig.c')
-rw-r--r-- | hw/xen_devconfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/xen_devconfig.c b/hw/xen_devconfig.c index 6926c54f4f..41accbbfa9 100644 --- a/hw/xen_devconfig.c +++ b/hw/xen_devconfig.c @@ -14,7 +14,7 @@ static void xen_config_cleanup_dir(char *dir) { struct xs_dirs *d; - d = qemu_malloc(sizeof(*d)); + d = g_malloc(sizeof(*d)); d->xs_dir = dir; QTAILQ_INSERT_TAIL(&xs_cleanup, d, list); } @@ -43,7 +43,7 @@ static int xen_config_dev_mkdir(char *dev, int p) xen_be_printf(NULL, 0, "xs_mkdir %s: failed\n", dev); return -1; } - xen_config_cleanup_dir(qemu_strdup(dev)); + xen_config_cleanup_dir(g_strdup(dev)); if (!xs_set_permissions(xenstore, 0, dev, perms, 2)) { xen_be_printf(NULL, 0, "xs_set_permissions %s: failed\n", dev); |