bhyve: fix small memory leak in virtio console

Reported by:	Coverity
CID:		1363284
Sponsored by:	Dell EMC
This commit is contained in:
vangyzen 2018-05-28 03:05:01 +00:00
parent 1925dfb9c6
commit 975f33299b

View File

@ -651,7 +651,7 @@ pci_vtcon_init(struct vmctx *ctx, struct pci_devinst *pi, char *opts)
while ((opt = strsep(&opts, ",")) != NULL) {
portname = strsep(&opt, "=");
portpath = strdup(opt);
portpath = opt;
/* create port */
if (pci_vtcon_sock_add(sc, portname, portpath) < 0) {