Index: usr.sbin/bhyve/pci_xhci.c =================================================================== --- usr.sbin/bhyve/pci_xhci.c +++ usr.sbin/bhyve/pci_xhci.c @@ -2623,7 +2623,7 @@ struct pci_xhci_dev_emu *dev; struct usb_devemu *ue; void *devsc; - char *uopt, *xopts, *config; + char *uopt = NULL, *xopts, *config; int usb3_port, usb2_port, i; usb3_port = sc->usb3_port_start - 1; @@ -2700,8 +2700,6 @@ sc->ndevices++; } - if (uopt != NULL) - free(uopt); portsfinal: sc->portregs = calloc(XHCI_MAX_DEVS, sizeof(struct pci_xhci_portregs));