X-Git-Url: https://repo.jachan.dev/qemu.git/blobdiff_plain/bf1cd9b4f54c8f630291dcd057c3aa293a510bcb..f90074f49309de9dd65b978a95d10f089017960a:/hw/usb-bus.c diff --git a/hw/usb-bus.c b/hw/usb-bus.c index f1dd55eccd..c0bbc7c6b0 100644 --- a/hw/usb-bus.c +++ b/hw/usb-bus.c @@ -342,7 +342,7 @@ static void usb_bus_dev_print(Monitor *mon, DeviceState *qdev, int indent) static char *usb_get_dev_path(DeviceState *qdev) { USBDevice *dev = DO_UPCAST(USBDevice, qdev, qdev); - return qemu_strdup(dev->port->path); + return g_strdup(dev->port->path); } static char *usb_get_fw_dev_path(DeviceState *qdev) @@ -353,7 +353,7 @@ static char *usb_get_fw_dev_path(DeviceState *qdev) long nr; fw_len = 32 + strlen(dev->port->path) * 6; - fw_path = qemu_malloc(fw_len); + fw_path = g_malloc(fw_len); in = dev->port->path; while (fw_len - pos > 0) { nr = strtol(in, &in, 10);